### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/core/IType.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IType.java,v retrieving revision 1.68 diff -u -r1.68 IType.java --- model/org/eclipse/jdt/core/IType.java 3 Nov 2009 15:53:29 -0000 1.68 +++ model/org/eclipse/jdt/core/IType.java 22 Apr 2010 23:33:10 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -593,14 +593,17 @@ IInitializer[] getInitializers() throws JavaModelException; /** - * Returns the binding key for this type. A binding key is a key that uniquely - * identifies this type. It allows access to generic info for parameterized - * types. + * Returns the binding key for this type only if the given type is {@link #isResolved() resolved}. + * A binding key is a key that uniquely identifies this type. It allows access + * to generic info for parameterized types. * + *

If the given type is not resolved, the returned key is simply the java element's key. + *

* @return the binding key for this type * @see org.eclipse.jdt.core.dom.IBinding#getKey() * @see BindingKey * @since 3.1 + * @see #isResolved() */ String getKey();