| Summary: | [code snippet] ClassNotFoundException while calling the constructor of an inner class through display view | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Satyam Kandula <satyam.kandula> |
| Component: | Core | Assignee: | JDT Core Triaged <jdt-core-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | Ayushman Jain <amj87.iitr> |
| Severity: | normal | ||
| Priority: | P3 | CC: | amj87.iitr |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
(In reply to comment #0) The statement that I executed from the display view is - 'new X<String>("Hello").new Y("Hello").getK();' and not 'could not resolve type: pkg.X<String>$Y' as stated in comment 0. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
In the given test case, if I break in main() and then execute that statement (could not resolve type: pkg.X<String>$Y) from the display view, I get a ClassNotFoundException followed by the message "could not resolve type: pkg.X<String>$Y" ######## package pkg; public class X<T> { public class Y { String k; public Y(String kp) { k = kp; } public String getK() { return k; } } T field; public X(T param) { field = param; } public static void main(String [] args) { new X<String>("Hello").new Y("Hello").getK(); } } ######## This works good if X is not parameterized.