### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/core/IField.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IField.java,v retrieving revision 1.21 diff -u -r1.21 IField.java --- model/org/eclipse/jdt/core/IField.java 27 Jun 2008 16:04:01 -0000 1.21 +++ model/org/eclipse/jdt/core/IField.java 23 Apr 2010 13:10:54 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 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 @@ -95,13 +95,16 @@ */ String getElementName(); /** - * Returns the binding key for this field. A binding key is a key that uniquely - * identifies this field. It allows access to generic info for parameterized - * fields. + * Returns the binding key for this field only if the given field is {@link #isResolved() resolved}. + * A binding key is a key that uniquely identifies this field. It allows access to generic info + * for parameterized fields. * + *

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

* @return the binding key for this field * @see org.eclipse.jdt.core.dom.IBinding#getKey() * @see BindingKey + * @see #isResolved() * @since 3.1 */ String getKey(); Index: model/org/eclipse/jdt/core/IMethod.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IMethod.java,v retrieving revision 1.32 diff -u -r1.32 IMethod.java --- model/org/eclipse/jdt/core/IMethod.java 27 Jun 2008 16:04:01 -0000 1.32 +++ model/org/eclipse/jdt/core/IMethod.java 23 Apr 2010 13:10:54 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 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 @@ -101,13 +101,16 @@ */ int getNumberOfParameters(); /** - * Returns the binding key for this method. A binding key is a key that uniquely - * identifies this method. It allows access to generic info for parameterized - * methods. + * Returns the binding key for this method only if the given method is {@link #isResolved() resolved}. + * A binding key is a key that uniquely identifies this method. It allows access + * to generic info for parameterized methods. * + *

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

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