hi all i try to do like List alist =new ArrayList(); alist.add(0L); alist.get(0); and it is fine. donot know why?
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!