-   Linux - General (
-   -   Java classe getting sucked in (

Thor_2.0 12-03-2009 02:51 PM

Java classe getting sucked in

Okay, this is the trick of the dissappearing class... :D

I have a class that holds some values, and an arraylist. The siez thereof is - sya - 2 (the arraylist, that is)

I call and instantiate a class and give it the holder class as parameter. Before doing that, the holder class reports the correct size, the second time, the size is 0.

If I call a method and feed such a class as parameter


aClass = new SomeClass();
System.out.println("het holderclass has : " + aHolder.thelist().size + " elements.");
// aHolder.thelist() returns an ArrayList() of Serialized stuff
when I call this, the second run reposts no elements in the arraylist.

Where do I goof off...

Do you need to call like "byref" or something?



All times are GMT -5. The time now is 12:53 PM.