Bug 98074 - [1.5][dom] Package binding is null for ArrayType binding
Summary: [1.5][dom] Package binding is null for ArrayType binding
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-02 06:28 EDT by Frederic Fusier CLA
Modified: 2005-06-02 08:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2005-06-02 06:28:48 EDT
Using 3.1 RC1.

Looking in ASTView for following code snippet:
import java.util.HashMap;
public class Test {
	Object o= new HashMap<?, ?>[0];
}

Look at type binding of ArrayType node "HashMap<?, ?>[0]" and noticed that its
package is null. It seems that there's something wrong here...
Comment 1 Olivier Thomann CLA 2005-06-02 08:27:04 EDT
	/**
	 * Returns the binding for the package in which this type is declared.
	 * 
	 * @return the binding for the package in which this class, interface,
	 * enum, or annotation type is declared, or <code>null</code> if this type
	 * binding represents a primitive type, an array type, the null type, 
	 * a type variable, a wildcard type, or a capture binding.
	 */
	public IPackageBinding getPackage();

This seems in line with the doc.
Ok to close?
Comment 2 Frederic Fusier CLA 2005-06-02 08:41:27 EDT
of course