LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


Hi,

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

Quote:
aClass = new SomeClass();
System.out.println("het holderclass has : " + aHolder.thelist().size + " elements.");
// aHolder.thelist() returns an ArrayList() of Serialized stuff
aClass.takeTheList(aHolder);
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?

Tnx!!

Thor
 
  


Reply

Tags
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 02:48 AM
LXer: All I Want For Christmas Is...To Be Sucked Into A Black Hole? LXer Syndicated Linux News 1 05-29-2009 03:12 AM
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 10:21 PM
100% CPU Sucked while Printing AceTech Linux - Hardware 3 08-20-2006 07:47 AM
sucked up by sendmail... ssrikant Linux - Networking 10 05-12-2003 09:40 AM


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

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