Bug 70616

Summary: [1.5] Unable to bind type variable in binary from Enum<E>
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kent_johnson
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philipe Mulet CLA 2004-07-22 09:41:57 EDT
When compiling the following source:
public class X {
	
	public static void main(String[] args) {

		Enum<X> ex = null;
		String s = ex.name();
	}
}

an error is reported against Enum classfile, claiming it is inconsistent.
It should bind variables properly, and only report a bound mismatch in the end.
Comment 1 Philipe Mulet CLA 2004-07-22 09:43:27 EDT
Added regression test: GenericTypeTest#test256.
Problem is that variable creation was not allowing proper visibility of the 
one being defined.

Fixed