db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: Bug, or can the code be deleted/commented? (SQLChar)
Date Tue, 08 Jan 2008 21:38:11 GMT
Knut Anders Hatlen wrote:
> Kristian Waagan <Kristian.Waagan@Sun.COM> writes:
> 
>> 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?

I think those fields (intArray, intLength, localFinder) are dead code, 
see DERBY-2720.
http://issues.apache.org/jira/browse/DERBY-2720

Dan.


Mime
View raw message