Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-03-2009, 02:51 PM   #1
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Java classe getting sucked in


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

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?




java, parameters, passing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Slack64-cur] xscreensaver "Lament" weird effect: viewer (me) being sucked into cube! GrapefruiTgirl General 33 08-28-2009 03:48 AM
LXer: All I Want For Christmas Is...To Be Sucked Into A Black Hole? LXer Syndicated Linux News 1 05-29-2009 04:12 AM
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 11:21 PM
100% CPU Sucked while Printing AceTech Linux - Hardware 3 08-20-2006 08:47 AM
sucked up by sendmail... ssrikant Linux - Networking 10 05-12-2003 10:40 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration