En l'instant précis du 22/05/07 05:21, Peter s'exprimait en ces termes:
> hi all;
> only get problem when put 0 into the list, put 1 or any number is ok, put
> new Integer(0) is ok as well;
Ide not recompiling or tomcat not reloading class, while you think you
are running the 0 case, you are in fact running the 1 case. did you try
successfully storing 3 then switch back to 0. If It does not compile at
0, your test case will still show 3.
>
> i think it may be a bug.
> does anyone has a idea?
> regards
>
>
> On 5/21/07, Peter <[EMAIL PROTECTED]> wrote:
>>
>> hi all,
>>
>> I have come into a very wired problem.
>>
>> here it is.
>> my project using JBuilder 2006 and tomcat 5.5.20.
>> when i put a 0 into a list and get 1 as a result.
>> simple code for testing!
>>
>> List alist =new ArrayList();
>> alist.add(0); put 0 into it
>> alist.get(0); get 1 as result.
>>
>> it occurs when i using JBuilder2006 to complie it and run under tomcat
>> 5.5.20.
>> i choose Jbuilder 2006 builder property: language features ( java 2 SDK
>> V5.0 generic enable) ; target VM java 2 SDK V5.0 and later
>>
>> but if i choose target VM target VM java 2 SDK V1.4 and later it
>> works fine, put 0 get 0.
>> and if i donot run under the tomcat it still fine
>>
>> so i create another small project, in a jsp only doing List alist =new
>> ArrayList();
>> alist.add(0); alist.get(0);
>> and it works fine as well under the same tomcat.
>>
>>
>> i wonder what happens here?
>> my project using many other jar file , i wonder if there is something
>> wrong there.
>> does anyone has a idea?
>>
>> thanks in advanced!
>>
>>
>>
>>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to