Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 432724

Summary: Incorrect binding key for static member class of a generic type
Product: [Eclipse Project] JDT Reporter: Noopur Gupta <noopur_gupta>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.8.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Noopur Gupta CLA 2014-04-14 08:10:20 EDT
package test.bugzilla;

public class A<T> {
	public static class B { // [1] - B - KEY: "Ltest/bugzilla/A<TT;>.B;"
		public B get() {    // [2] - B - KEY: "Ltest/bugzilla/A<>.B;"
			return null;
		}
	}
}
----------------------------------------------------

In the above example, the binding keys of 'B' at [1] and [2] are different and both look wrong, since the type parameters of 'A' are not relevant for static members of A.
Comment 1 Markus Keller CLA 2014-04-14 15:29:11 EDT

*** This bug has been marked as a duplicate of bug 100546 ***