From: SourceForge.net <no...@so...> - 2008-03-12 20:28:27
|
Bugs item #1913033, was opened at 2008-03-12 20:28 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=1913033&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: 4: Serious Status: Open Resolution: None Priority: 5 Private: No Submitted By: Stephen Wong (sbwong) Assigned to: Dan Smith (dlsmith) Summary: Cannot instantiate inner class in Interactions pane Initial Comment: Important note: problem seen in version 20080124-1942 but appears to be fixed in version 20080312-1948 revision 4395 Consider the following class with a nested class (problem exists for inner classes too): public class OuterClass { public static class InnerClass { } public InnerClass makeIt() { return new InnerClass(); } } If you try to run the following lines in the Interactions pane, the first will succeed but the rest will fail with the error "Static Error: Name is ambiguous" OuterClass oc = new OuterClass(); // this line ok in Interactions pane OuterClass.InnerClass in1 = new OuterClass.InnerClass(); // fails in Interactions pane OuterClass.InnerClass in2 = oc.makeIt(); // fails in Interactions pane The above code will run just fine if compiled and run normally, e.g. in a test method. The attached zip file has a project with the above code and a test file that shows that it works when compiled and run normally. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1913033&group_id=44253 |