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.0generic enable) ; target VM java 2 SDK
V5.0 and later
hmm, do you use this code in a jsp? Could you possible check the
source code generated by tomcat for this jsp and inspect it / send it
to us? Sounds like your jsp compiler is buggy.
regards
Leon
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]