Bugs item #1236151, was opened at 2005-07-11 11:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1236151&group_id=44253
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interactions
Group: Annoying
Status: Open
Resolution: None
Priority: 5
Submitted By: Fernando Pereira (fcnpereira)
Assigned to: Nobody/Anonymous (nobody)
Summary: deficient generics support
Initial Comment:
There are two problems with generics support on the interactions pane
that are certain to cause confusion to students.
1. No autounboxing
2. No type checking of method arguments
The two problems are shown in the following interactions
> import java.util.*;
> List<Integer> l = new ArrayList<Integer>();
> l.add(1)
true
> l.get(0)
1
> l.get(0) == 1
Error: Bad type in comparison expression
> l.add("foo")
true
It would be great if these problems were corrected before next
semester, where we will be using DrJava with generics for an
intro CS class.
Thanks
-- F
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1236151&group_id=44253
|