Bug 125047 - IMethodBinding#getJavaElement() should spec 'null' for default constructor
Summary: IMethodBinding#getJavaElement() should spec 'null' for default constructor
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-24 13:40 EST by Markus Keller CLA
Modified: 2006-02-14 07:33 EST (History)
0 users

See Also:


Attachments

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