Buggy code:
public class BinaryType extends BinaryMember implements IType , SuffixConstants { private static final IField [ ] NO_FIELDS = new IField [ 0 ] ; private static final IMethod [ ] NO_METHODS = new IMethod [ 0 ] ; private static final IType [ ] NO_TYPES = new IType [ 0 ] ; private static final IInitializer [ ] NO_INITIALIZERS = new IInitializer [ 0 ] ; private static final String [ ] NO_STRINGS = new String [ 0 ] ; protected BinaryType ( JavaElement parent , String name ) { } protected void closing ( Object info ) throws JavaModelException { } public void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , ICompletionRequestor requestor ) throws JavaModelException { } public void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , ICompletionRequestor requestor , WorkingCopyOwner owner ) throws JavaModelException { } public IField createField ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public IInitializer createInitializer ( String contents , IJavaElement sibling , IProgressMonitor monitor ) throws JavaModelException { } public IMethod createMethod ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public IType createType ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public boolean equals ( Object o ) { } public IMethod [ ] findMethods ( IMethod method ) { } public IJavaElement [ ] getChildren ( ) throws JavaModelException { } protected ClassFileInfo getClassFileInfo ( ) throws JavaModelException { } public IType getDeclaringType ( ) { } public int getElementType ( ) { } public IField getField ( String fieldName ) { } public IField [ ] getFields ( ) throws JavaModelException { } public int getFlags ( ) throws JavaModelException { } public String getFullyQualifiedName ( ) { } public String getFullyQualifiedName ( char enclosingTypeSeparator ) { } public IJavaElement getHandleFromMemento ( String token , MementoTokenizer memento , WorkingCopyOwner workingCopyOwner ) { switch ( token . charAt ( 0 ) ) { case JavaElement . JEM_COUNT : return getHandleUpdatingCountFromMemento ( memento , workingCopyOwner ) ; case JavaElement . JEM_FIELD : String fieldName = memento . nextToken ( ) ; JavaElement field = ( ( JavaElement ) ( getField ( fieldName ) ) ) ; return field . getHandleFromMemento ( memento , workingCopyOwner ) ; case JavaElement . JEM_INITIALIZER : String count = memento . nextToken ( ) ; JavaElement initializer = ( ( JavaElement ) ( getInitializer ( Integer . parseInt ( count ) ) ) ) ; return initializer . getHandleFromMemento ( memento , workingCopyOwner ) ; case JavaElement . JEM_METHOD : String selector = memento . nextToken ( ) ; ArrayList params = new ArrayList ( ) ; nextParam : while ( memento . hasMoreTokens ( ) ) { token = memento . nextToken ( ) ; switch ( token . charAt ( 0 ) ) { case JavaElement . JEM_TYPE : case JavaElement . JEM_TYPE_PARAMETER : break nextParam ; case JavaElement . JEM_METHOD : String param = memento . nextToken ( ) ; StringBuffer buffer = new StringBuffer ( ) ; <START_BUG> while ( ( Signature . C_ARRAY ) == ( param . charAt ( 0 ) ) ) { <END_BUG> buffer . append ( Signature . C_ARRAY ) ; param = memento . nextToken ( ) ; } params . add ( ( ( buffer . toString ( ) ) + param ) ) ; break ; default : break nextParam ; } } String [ ] parameters = new String [ params . size ( ) ] ; params . toArray ( parameters ) ; JavaElement method = ( ( JavaElement ) ( getMethod ( selector , parameters ) ) ) ; if ( token != null ) { switch ( token . charAt ( 0 ) ) { case JavaElement . JEM_TYPE : case JavaElement . JEM_TYPE_PARAMETER : case JavaElement . JEM_LOCALVARIABLE : return method . getHandleFromMemento ( token , memento , workingCopyOwner ) ; default : return method ; } } else { return method ; } case JavaElement . JEM_TYPE : String typeName ; if ( memento . hasMoreTokens ( ) ) { typeName = memento . nextToken ( ) ; char firstChar = typeName . charAt ( 0 ) ; if ( ( ( ( ( firstChar == ( JavaElement . JEM_FIELD ) ) || ( firstChar == ( JavaElement . JEM_INITIALIZER ) ) ) || ( firstChar == ( JavaElement . JEM_METHOD ) ) ) || ( firstChar == ( JavaElement . JEM_TYPE ) ) ) || ( firstChar == ( JavaElement . JEM_COUNT ) ) ) { token = typeName ; typeName = "" ; } else { token = null ; } } else { typeName = "" ; token = null ; } JavaElement type = ( ( JavaElement ) ( getType ( typeName ) ) ) ; if ( token == null ) { return type . getHandleFromMemento ( memento , workingCopyOwner ) ; } else { return type . getHandleFromMemento ( token , memento , workingCopyOwner ) ; } case JavaElement . JEM_TYPE_PARAMETER : String typeParameterName = memento . nextToken ( ) ; JavaElement typeParameter = new TypeParameter ( this , typeParameterName ) ; return typeParameter . getHandleFromMemento ( memento , workingCopyOwner ) ; } return null ; } public IInitializer getInitializer ( int count ) { } public IInitializer [ ] getInitializers ( ) { } public IMethod getMethod ( String selector , String [ ] parameterTypeSignatures ) { } public IMethod [ ] getMethods ( ) throws JavaModelException { } public IPackageFragment getPackageFragment ( ) { }

Fix:
while ( ( ( param . length ( ) ) == 1 ) && ( ( Signature . C_ARRAY ) == ( param . charAt ( 0 ) ) ) ) {