Bug 81417

Summary: [dom] getJavaElement() throws a NPE for WildcardBinding
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix
none
Regression test none

Description Frederic Fusier CLA 2004-12-16 11:26:28 EST
Using 3.1 M4 candidate I200412160010.
Test case:
class X<T> {}
public class Test {
	X<? extends Exception> test;	
}

If you try to get java element for WildcardBinding of WildcardType, you get null.

Also happen with 3.1 M3.
Comment 1 Jerome Lanneluc CLA 2004-12-16 11:52:32 EST
Actually it should return null, but it currently throws a NPE.
Comment 2 Jerome Lanneluc CLA 2004-12-16 13:13:34 EST
Created attachment 16709 [details]
Proposed fix
Comment 3 Jerome Lanneluc CLA 2004-12-16 13:14:00 EST
Created attachment 16710 [details]
Regression test
Comment 4 Jerome Lanneluc CLA 2005-01-03 05:39:29 EST
Released fix and regression test (ASTModelBridgeTest#testWildCard())
Comment 5 David Audel CLA 2005-02-15 06:07:24 EST
Verified in I20050214-0927