Index: model/org/eclipse/jdt/internal/core/util/KeyToSignature.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/KeyToSignature.java,v retrieving revision 1.17 diff -u -r1.17 KeyToSignature.java --- model/org/eclipse/jdt/internal/core/util/KeyToSignature.java 25 May 2005 16:29:49 -0000 1.17 +++ model/org/eclipse/jdt/internal/core/util/KeyToSignature.java 29 May 2005 09:08:02 -0000 @@ -16,10 +16,6 @@ import org.eclipse.jdt.core.compiler.CharOperation; import org.eclipse.jdt.internal.compiler.ast.Wildcard; -/* - * Converts a binding key into a signature - */ -// TODO (jerome) handle methods and fields public class KeyToSignature extends BindingKeyParser { public static final int SIGNATURE = 0; @@ -173,6 +169,11 @@ } public void consumeType() { + // remove main type if needed + if (this.mainTypeStart != -1) { + this.signature.replace(this.mainTypeStart, this.mainTypeEnd, ""); //$NON-NLS-1$ + } + // parameter types int length = this.typeParameters.size(); if (length > 0) { StringBuffer typeParametersSig = new StringBuffer(); @@ -186,10 +187,6 @@ this.signature.insert(this.typeSigStart, typeParametersSig); this.typeParameters = new ArrayList(); } - // remove main type if needed - if (this.mainTypeStart != -1) { - this.signature.replace(this.mainTypeStart, this.mainTypeEnd, ""); //$NON-NLS-1$ - } this.signature.append(';'); }