Bug 125047

Summary: IMethodBinding#getJavaElement() should spec 'null' for default constructor
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: trivial    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2006-01-24 13:40:00 EST
I20060124-0800

Since there's no IMethod for the implicit default constructor, IMethodBinding#getJavaElement() cannot return a valid IMethod for such a binding and currently returns null. This should be spec'd.

BTW: the array.length case should be moved to after "array types of any of the above", i.e. something like this:

	 * Here are the cases where a <code>null</code> should be expected:
	 * <ul>
	 * <li>primitive types, including void</li>
	 * <li>null type</li>
	 * <li>wildcard types</li>
	 * <li>capture types</li>
	 * <li>array types of any of the above</li>
	 * <li>the "length" field of an array type</li>
	 * <li>the default constructor of a source class</li>
	 * </ul>
Comment 1 Jerome Lanneluc CLA 2006-01-25 10:15:41 EST
Thanks Markus. 

Changed spec as suggested.
Comment 2 Frederic Fusier CLA 2006-02-14 07:33:11 EST
Javadoc verified for 3.2 M5 using build I20060214-0010.