Bug 70616 - [1.5] Unable to bind type variable in binary from Enum<E>
Summary: [1.5] Unable to bind type variable in binary from Enum<E>
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-22 09:41 EDT by Philipe Mulet CLA
Modified: 2005-01-11 11:02 EST (History)
1 user (show)

See Also:


Attachments

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