Buggy code:
public static final IJavaModelStatus VERIFIED_OK = new JavaModelStatus ( IStatus . OK , IStatus . OK , Util . bind ( "status.OK" ) ) ; public JavaModelStatus ( ) { } public JavaModelStatus ( int code ) { } public JavaModelStatus ( int code , IJavaElement [ ] elements ) { } public JavaModelStatus ( int code , String string ) { } public JavaModelStatus ( int severity , int code , String string ) { } public JavaModelStatus ( int code , Throwable throwable ) { } public JavaModelStatus ( int code , IPath path ) { } public JavaModelStatus ( int code , IJavaElement element ) { } public JavaModelStatus ( int code , IJavaElement element , String string ) { } public JavaModelStatus ( CoreException coreException ) { } protected int getBits ( ) { } public IStatus [ ] getChildren ( ) { } public IJavaElement [ ] getElements ( ) { } public String getMessage ( ) { Throwable exception = getException ( ) ; if ( exception == null ) { switch ( getCode ( ) ) { case IJavaModelStatusConstants . CORE_EXCEPTION : return Util . bind ( "status.coreException" ) ; case IJavaModelStatusConstants . BUILDER_INITIALIZATION_ERROR : return Util . bind ( "build.initializationError" ) ; case IJavaModelStatusConstants . BUILDER_SERIALIZATION_ERROR : return Util . bind ( "build.serializationError" ) ; case IJavaModelStatusConstants . DEVICE_PATH : return Util . bind ( "status.cannotUseDeviceOnPath" , getPath ( ) . toString ( ) ) ; case IJavaModelStatusConstants . DOM_EXCEPTION : return Util . bind ( "status.JDOMError" ) ; case IJavaModelStatusConstants . ELEMENT_DOES_NOT_EXIST : return Util . bind ( "element.doesNotExist" , ( ( JavaElement ) ( fElements [ 0 ] ) ) . toStringWithAncestors ( ) ) ; case IJavaModelStatusConstants . EVALUATION_ERROR : return Util . bind ( "status.evaluationError" , fString ) ; case IJavaModelStatusConstants . INDEX_OUT_OF_BOUNDS : return Util . bind ( "status.indexOutOfBounds" ) ; case IJavaModelStatusConstants . INVALID_CONTENTS : return Util . bind ( "status.invalidContents" ) ; case IJavaModelStatusConstants . INVALID_DESTINATION : return Util . bind ( "status.invalidDestination" , ( ( JavaElement ) ( fElements [ 0 ] ) ) . toStringWithAncestors ( ) ) ; case IJavaModelStatusConstants . INVALID_ELEMENT_TYPES : StringBuffer buff = new StringBuffer ( Util . bind ( "operation.notSupported" ) ) ; for ( int i = 0 ; i < ( fElements . length ) ; i ++ ) { if ( i > 0 ) { buff . append ( ",<seq2seq4repair_space>" ) ; } buff . append ( ( ( JavaElement ) ( fElements [ i ] ) ) . toStringWithAncestors ( ) ) ; } return buff . toString ( ) ; case IJavaModelStatusConstants . INVALID_NAME : return Util . bind ( "status.invalidName" , fString ) ; case IJavaModelStatusConstants . INVALID_PACKAGE : return Util . bind ( "status.invalidPackage" , fString ) ; case IJavaModelStatusConstants . INVALID_PATH : if ( ( fString ) != null ) { return fString ; } else { return Util . bind ( "status.invalidPath" , ( ( getPath ( ) ) == null ? "null" : getPath ( ) . toString ( ) ) ) ; } case IJavaModelStatusConstants . INVALID_PROJECT : return Util . bind ( "status.invalidProject" , fString ) ; case IJavaModelStatusConstants . INVALID_RESOURCE : return Util . bind ( "status.invalidResource" , fString ) ; case IJavaModelStatusConstants . INVALID_RESOURCE_TYPE : return Util . bind ( "status.invalidResourceType" , fString ) ; case IJavaModelStatusConstants . INVALID_SIBLING : if ( ( fString ) != null ) { return Util . bind ( "status.invalidSibling" , fString ) ; } else { return Util . bind ( "status.invalidSibling" , ( ( JavaElement ) ( fElements [ 0 ] ) ) . toStringWithAncestors ( ) ) ; } case IJavaModelStatusConstants . IO_EXCEPTION : return Util . bind ( "status.IOException" ) ; case IJavaModelStatusConstants . NAME_COLLISION : if ( ( ( fElements ) != null ) && ( ( fElements . length ) > 0 ) ) { IJavaElement element = fElements [ 0 ] ; String name = element . getElementName ( ) ; if ( ( element instanceof IPackageFragment ) && ( name . equals ( IPackageFragment . DEFAULT_PACKAGE_NAME ) ) ) { return Util . bind ( "operation.cannotRenameDefaultPackage" ) ; } } if ( ( fString ) != null ) { return fString ; } else { <START_BUG> return Util . bind ( "status.nameCollision" ) ; <END_BUG> } case IJavaModelStatusConstants . NO_ELEMENTS_TO_PROCESS : return Util . bind ( "operation.needElements" ) ; case IJavaModelStatusConstants . NULL_NAME : return Util . bind ( "operation.needName" ) ; case IJavaModelStatusConstants . NULL_PATH : return Util . bind ( "operation.needPath" ) ; case IJavaModelStatusConstants . NULL_STRING : return Util . bind ( "operation.needString" ) ; case IJavaModelStatusConstants . PATH_OUTSIDE_PROJECT : return Util . bind ( "operation.pathOutsideProject" , fString , ( ( JavaElement ) ( fElements [ 0 ] ) ) . toStringWithAncestors ( ) ) ; case IJavaModelStatusConstants . READ_ONLY : IJavaElement element = fElements [ 0 ] ; String name = element . getElementName ( ) ; if ( ( element instanceof IPackageFragment ) && ( name . equals ( IPackageFragment . DEFAULT_PACKAGE_NAME ) ) ) { return Util . bind ( "status.defaultPackageReadOnly" ) ; } return Util . bind ( "status.readOnly" , name ) ; case IJavaModelStatusConstants . RELATIVE_PATH : return Util . bind ( "operation.needAbsolutePath" , getPath ( ) . toString ( ) ) ; case IJavaModelStatusConstants . TARGET_EXCEPTION : return Util . bind ( "status.targetException" ) ; case IJavaModelStatusConstants . UPDATE_CONFLICT : return Util . bind ( "status.updateConflict" ) ; case IJavaModelStatusConstants . NO_LOCAL_CONTENTS : return Util . bind ( "status.noLocalContents" , getPath ( ) . toString ( ) ) ; } if ( ( fString ) != null ) { return fString ; } else { return "" ; } } else { String message = exception . getMessage ( ) ; if ( message != null ) { return message ; } else { return exception . toString ( ) ; } }

Fix:
return Util . bind ( "status.nameCollision" , "" ) ;