Buggy code:
case IJavaModelStatusConstants . NULL_NAME : return org . eclipse . jdt . internal . core . util . Util . bind ( "operation.needName" ) ; case IJavaModelStatusConstants . NULL_PATH : return org . eclipse . jdt . internal . core . util . Util . bind ( "operation.needPath" ) ; case IJavaModelStatusConstants . NULL_STRING : return org . eclipse . jdt . internal . core . util . Util . bind ( "operation.needString" ) ; case IJavaModelStatusConstants . PATH_OUTSIDE_PROJECT : return org . eclipse . jdt . internal . core . util . Util . bind ( "operation.pathOutsideProject" , string , ( ( JavaElement ) ( elements [ 0 ] ) ) . toStringWithAncestors ( ) ) ; case IJavaModelStatusConstants . READ_ONLY : IJavaElement element = elements [ 0 ] ; String name = element . getElementName ( ) ; if ( ( element instanceof IPackageFragment ) && ( name . equals ( IPackageFragment . DEFAULT_PACKAGE_NAME ) ) ) { return org . eclipse . jdt . internal . core . util . Util . bind ( "status.defaultPackageReadOnly" ) ; } return org . eclipse . jdt . internal . core . util . Util . bind ( "status.readOnly" , name ) ; case IJavaModelStatusConstants . RELATIVE_PATH : return org . eclipse . jdt . internal . core . util . Util . bind ( "operation.needAbsolutePath" , getPath ( ) . toString ( ) ) ; case IJavaModelStatusConstants . TARGET_EXCEPTION : return org . eclipse . jdt . internal . core . util . Util . bind ( "status.targetException" ) ; case IJavaModelStatusConstants . UPDATE_CONFLICT : return org . eclipse . jdt . internal . core . util . Util . bind ( "status.updateConflict" ) ; case IJavaModelStatusConstants . NO_LOCAL_CONTENTS : return org . eclipse . jdt . internal . core . util . Util . bind ( "status.noLocalContents" , getPath ( ) . toString ( ) ) ; case IJavaModelStatusConstants . CP_CONTAINER_PATH_UNBOUND : IJavaProject javaProject = ( ( IJavaProject ) ( elements [ 0 ] ) ) ; ClasspathContainerInitializer initializer = JavaCore . getClasspathContainerInitializer ( this . path . segment ( 0 ) ) ; String description = null ; if ( initializer != null ) description = initializer . getDescription ( this . path , javaProject ) ; if ( description == null ) description = path . makeRelative ( ) . toString ( ) ; return org . eclipse . jdt . internal . core . util . Util . bind ( "classpath.unboundContainerPath" , description , javaProject . getElementName ( ) ) ; case IJavaModelStatusConstants . INVALID_CP_CONTAINER_ENTRY : javaProject = ( ( IJavaProject ) ( elements [ 0 ] ) ) ; IClasspathContainer container = null ; description = null ; try { container = JavaCore . getClasspathContainer ( path , javaProject ) ; } catch ( JavaModelException e ) { } if ( container == null ) { initializer = JavaCore . getClasspathContainerInitializer ( path . segment ( 0 ) ) ; if ( initializer != null ) description = initializer . getDescription ( path , javaProject ) ; } else { description = container . getDescription ( ) ; } if ( description == null ) description = path . makeRelative ( ) . toString ( ) ; return org . eclipse . jdt . internal . core . util . Util . bind ( "classpath.invalidContainer" , description , javaProject . getElementName ( ) ) ; case IJavaModelStatusConstants . CP_VARIABLE_PATH_UNBOUND : javaProject = ( ( IJavaProject ) ( elements [ 0 ] ) ) ; return org . eclipse . jdt . internal . core . util . Util . bind ( "classpath.unboundVariablePath" , path . makeRelative ( ) . toString ( ) , javaProject . getElementName ( ) ) ; case IJavaModelStatusConstants . CLASSPATH_CYCLE : javaProject = ( ( IJavaProject ) ( elements [ 0 ] ) ) ; return org . eclipse . jdt . internal . core . util . Util . bind ( "classpath.cycle" , javaProject . getElementName ( ) ) ; case IJavaModelStatusConstants . DISABLED_CP_EXCLUSION_PATTERNS : javaProject = ( ( IJavaProject ) ( elements [ 0 ] ) ) ; String projectName = javaProject . getElementName ( ) ; IPath newPath = path ; if ( path . segment ( 0 ) . toString ( ) . equals ( projectName ) ) { newPath = path . removeFirstSegments ( 1 ) ; } <START_BUG> return org . eclipse . jdt . internal . core . util . Util . bind ( "classpath.disabledExclusionPatterns" , newPath . makeRelative ( ) . toString ( ) , projectName ) ; <END_BUG> case IJavaModelStatusConstants . DISABLED_CP_MULTIPLE_OUTPUT_LOCATIONS : javaProject = ( ( IJavaProject ) ( elements [ 0 ] ) ) ; projectName = javaProject . getElementName ( ) ; newPath = path ; if ( path . segment ( 0 ) . toString ( ) . equals ( projectName ) ) { newPath = path . removeFirstSegments ( 1 ) ; } return org . eclipse . jdt . internal . core . util . Util . bind ( "classpath.disabledMultipleOutputLocations" , newPath . makeRelative ( ) . toString ( ) , projectName ) ; case IJavaModelStatusConstants . INCOMPATIBLE_JDK_LEVEL : javaProject = ( ( IJavaProject ) ( elements [ 0 ] ) ) ; return org . eclipse . jdt . internal . core . util . Util . bind ( "classpath.incompatibleLibraryJDKLevel" , new String [ ] { javaProject . getElementName ( ) , javaProject . getOption ( JavaCore . COMPILER_CODEGEN_TARGET_PLATFORM , true ) , path . makeRelative ( ) . toString ( ) , string } ) ; } if ( ( string ) != null ) { return string ; } else { return "" ; } } else { String message = exception . getMessage ( ) ; if ( message != null ) { return message ; } else { return exception . toString ( ) ; } }

Fix:
return org . eclipse . jdt . internal . core . util . Util . bind ( "classpath.disabledInclusionExclusionPatterns" , newPath . makeRelative ( ) . toString ( ) , projectName ) ;