Skip to main content.
August 11th, 2004

I hate Java

It tries to do way too much for you. And the way it handles reference assignments is a PAIN! I was using a Vector object to hold a bunch of points I want to graph. Turns out, that Vectors don’t copy the object you are adding. They copy a reference, so if you don’t create a new object every time through, all of the previous insertions end up pointing at the most recent version of whatever you’re adding. SPEW! So, now that I know what it’s doing, I can correct for it, but man was it a pain to figure out what the problem was.

Posted by wmyers in work

This entry was posted on Wednesday, August 11th, 2004 at 19:50 and is filed under work. You can follow any responses to this entry through the comments RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.