Bug 333360 - [DOM] eclipse fails to create array binding in this situation
Summary: [DOM] eclipse fails to create array binding in this situation
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 major with 1 vote (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 333365 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-31 06:04 EST by arlindolima CLA
Modified: 2011-01-25 04:27 EST (History)
2 users (show)

See Also:


Attachments
Proposed fix + regression test (6.78 KB, patch)
2011-01-06 11:18 EST, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.