[Bluej-discuss] Hello all,
Davin McCall
davmac at bluej.org
Thu Apr 6 05:16:01 BST 2006
Hi Todd,
The first problem (with the ListIterator) is a known problem:
http://bugs.bluej.org/show_bug.cgi?id=480
It occurs whenever an object whose type is normally inaccessible is
placed on the object bench. In your case the ListIterator object's type
is actually a private inner class of LinkedList.
Davin
Todd Whittaker wrote:
> Hello all,
>
> I was putting together something for my students, and was walking
> through some manual testing of a LinkedList implementation inside
> BlueJ. I created an instance of the LinkedList object (type parameter
> provided is irrelevant), and put it on the object bench. This worked
> fine, and I was able to use it to call the add method a few times. I
> then inspected it and manually walked through the links to verify it
> was how I expected.
>
> I then asked for a listIterator and put it on the object bench, and it
> _looks_ like it creates an object, but then when I start trying to use
> the iterator object BlueJ stops working fully. I'll execute a method
> on the iterator and it just looks like it doesn't do anything. If I
> try and call a method that expects a parameter, it then says something
> about " ) expected."
>
> In addition, when I try to call methods on the original list now it
> doesn't work. The menu works, and dialogues pop up prompting for
> parameters, but the methods don't display return values, and again the
> " ) expected" error occurs when trying to pass parameters.
>
> Another related problem seems to be that when creating objects in
> which a type parameter is required, just ignoring the field and
> clicking on the "Ok" button causes BlueJ to lock up.
>
> Any suggestions? This is under Windows XP SP2, BlueJ 2.1.2, JDK
> 1.5.0_05. A quick check of BugZilla doesn't show anything related.
>
>
>
> --
> Todd A. Whittaker
> Program Chair, Information Technology
> Franklin University
> 614-744-3067
> whittakt at franklin.edu <mailto:whittakt at franklin.edu>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20060406/51690ae8/attachment.html
More information about the bluej-discuss
mailing list