Bug 333360

Summary: [DOM] eclipse fails to create array binding in this situation
Product: [Eclipse Project] JDT Reporter: arlindolima
Component: CoreAssignee: 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:
Description Flags
Proposed fix + regression test none

Description arlindolima CLA 2010-12-31 06:04:59 EST
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.
Comment 1 Olivier Thomann CLA 2011-01-05 14:36:28 EST
Reproduced.
My only be an issue with the DOM layer as the compiler reports no problem.
Comment 2 Olivier Thomann CLA 2011-01-06 09:24:38 EST
*** Bug 333365 has been marked as a duplicate of this bug. ***
Comment 3 Olivier Thomann CLA 2011-01-06 11:18:26 EST
Created attachment 186187 [details]
Proposed fix + regression test
Comment 4 Olivier Thomann CLA 2011-01-06 11:19:22 EST
I opened the bug 333669 to track down the issue with boggus signature.
Comment 5 Olivier Thomann CLA 2011-01-06 14:59:49 EST
Released for 3.7M5.
Comment 6 Jay Arthanareeswaran CLA 2011-01-25 04:27:08 EST
Verified for 3.7M5 using build I20110124-1800.