| Summary: | [DOM] eclipse fails to create array binding in this situation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | arlindolima | ||||
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | jarthana, Olivier_Thomann | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Reproduced. My only be an issue with the DOM layer as the compiler reports no problem. *** Bug 333365 has been marked as a duplicate of this bug. *** Created attachment 186187 [details]
Proposed fix + regression test
I opened the bug 333669 to track down the issue with boggus signature. Released for 3.7M5. Verified for 3.7M5 using build I20110124-1800. |
Build Identifier: M20100909-0800 In the following code: ------------------------------------------------ public class NullBinding { enum MyEnum implements java.lang.Comparable<MyEnum>, One< Outer<Integer>.Inner<Double>[]> { RED, GREEN, BLUE; } } interface One<Season> { } class Outer<T> { public class Inner<S> { } } ------------------------------------------------ eclipse creates a null binding for the ArrayType node Outer<Integer>.Inner<Double>[] that parameterizes the One Interface (2nd line of the code above). This shouldn't be happening. This also happens in eclipse 3.4. Reproducible: Always Steps to Reproduce: 1. Create a project with a file NullBinding.java and paste the code in the "Details" It's easier to see this bug in eclipse 3.4, using the ASTViewer plug-in.