Bugs item #1254541, was opened at 2005-08-08 15:16
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=1254541&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: DynamicJava
Group: Serious
Status: Open
Resolution: None
Priority: 5
Submitted By: hperkins (hperkins)
Assigned to: Nobody/Anonymous (nobody)
Summary: Generic type errors ignored in interactions window
Initial Comment:
The interactions window accepts generic code with type errors
without complaining. Example:
> import java.util.*
> import java.awt.*
> ArrayList<String> s = new ArrayList<String>()
> s.add("abc")
true
> s.add(17)
true
> s.add(new Rectangle())
true
> s
[abc, 17, java.awt.Rectangle[x=0,y=0,width=0,height=0]]
> s.size()
3
This is a problem if we want to use the interactions window to try
things out and find out what is correct Java code.
Observed using Java 1.5 (er, 5.0 or whatever it is) on both Windows
XP SP2 (Java 1.5_04) and OS X 10.4 (latest update). This is using
the latest beta (20050806-2057).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1254541&group_id=44253
|