Bug 98074

Summary: [1.5][dom] Package binding is null for ArrayType binding
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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