Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 47353 invoked from network); 8 Jan 2008 09:51:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jan 2008 09:51:45 -0000 Received: (qmail 87867 invoked by uid 500); 8 Jan 2008 09:51:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 87836 invoked by uid 500); 8 Jan 2008 09:51:34 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 87827 invoked by uid 99); 8 Jan 2008 09:51:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 01:51:33 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-mail-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 09:51:21 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe3.eu.sun.com [192.18.6.12]) by gmp-eb-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m089p2bL011877 for ; Tue, 8 Jan 2008 09:51:13 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JUB00501KB2G900@fe-emea-10.sun.com> (original mail from Kristian.Waagan@Sun.COM) for derby-dev@db.apache.org; Tue, 08 Jan 2008 09:51:02 +0000 (GMT) Received: from [129.159.112.188] by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JUB00IJFKP1CRD0@fe-emea-10.sun.com> for derby-dev@db.apache.org; Tue, 08 Jan 2008 09:51:01 +0000 (GMT) Date: Tue, 08 Jan 2008 10:51:01 +0100 From: Kristian Waagan Subject: Bug, or can the code be deleted/commented? (SQLChar) Sender: Kristian.Waagan@Sun.COM To: Derby Development Message-id: <47834785.4070907@Sun.com> Organization: Sun Microsystems Inc. MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; no-NO; rv:1.8.1.9) Gecko/20071119 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 X-Virus-Checked: Checked by ClamAV on apache.org Hello, While fiddling around in the source code, I came across the following piece of code in iapi.types.SQLChar: protected void copyState(SQLChar other) { this.value = other.value; this.rawData = other.rawData; this.rawLength = other.rawLength; this.cKey = other.cKey; this.stream = other.stream; this.intArray = intArray; this.intLength = intLength; this.localeFinder = localeFinder; } Note that the three last assignments are assignments to self. Is this a bug, or is it intentional? If it is intentional, my opinion is that the lines should be deleted and replaced by a comment (or at least commented out and be accompanied by a suitable text comment). thanks, -- Kristian