You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2007/05/22 00:07:11 UTC

Re: [OT] hi, [weird] problem? add 0 into [a list] but get 1 as a result!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter,

Peter wrote:
> I have come into a very [weird] problem.

[snip]

> 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.

Are you sure that JBuilder is compiling your class? I've seen IDEs fail
to compile source and leave you with an old version of the binary with
little indication.

If your class isn't compiling properly, maybe it's running something you
wrote in the past. Can you verify that the class file isn't an old one?

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGUhgP9CaO5/Lv0PARAp01AJ4ycdAbxtZbbUtULcnDMWc+2ikvRwCeP+UE
q1WjP3e/cO270YyiQdPeWvo=
=YNCb
-----END PGP SIGNATURE-----

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