Community
Participate
Working Groups
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...
/** * 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?
of course