Buggy code:
; private static final byte [ ] CHARSET = new byte [ ] { 99 , 104 , 97 , 114 , 115 , 101 , 116 , 61 } ; private static final byte [ ] CONTENT_TYPE = new byte [ ] { 34 , 67 , 111 , 110 , 116 , 101 , 110 , 116 , 45 , 84 , 121 , 112 , 101 , 34 } ; private static final byte [ ] CONTENT = new byte [ ] { 99 , 111 , 110 , 116 , 101 , 110 , 116 , 61 , 34 } ; public static final char JEM_ESCAPE = '\\' ; public static final char JEM_JAVAPROJECT = '=' ; public static final char JEM_PACKAGEFRAGMENTROOT = '//' ; public static final char JEM_PACKAGEFRAGMENT = '<' ; public static final char JEM_FIELD = '^' ; public static final char JEM_METHOD = '~' ; public static final char JEM_INITIALIZER = '|' ; public static final char JEM_COMPILATIONUNIT = '{' ; public static final char JEM_CLASSFILE = '(' ; public static final char JEM_TYPE = '[' ; public static final char JEM_PACKAGEDECLARATION = '%' ; public static final char JEM_IMPORTDECLARATION = '#' ; public static final char JEM_COUNT = '!' ; public static final char JEM_LOCALVARIABLE = '@' ; public static final char JEM_TYPE_PARAMETER = ']' ; public static final char JEM_ANNOTATION = '}' ; protected JavaElement parent ; protected static final JavaElement [ ] NO_ELEMENTS = new JavaElement [ 0 ] ; protected static final Object NO_INFO = new Object ( ) ; protected JavaElement ( JavaElement parent ) throws IllegalArgumentException { } public void close ( ) throws JavaModelException { } protected abstract void closing ( Object info ) throws JavaModelException { } protected abstract Object createElementInfo ( ) { } public boolean equals ( Object o ) { } protected void escapeMementoName ( StringBuffer buffer , String mementoName ) { } public boolean exists ( ) { } public ASTNode findNode ( CompilationUnit ast ) { } protected abstract void generateInfos ( Object info , HashMap newElements , IProgressMonitor pm ) throws JavaModelException { } public IJavaElement getAncestor ( int ancestorType ) { } public IJavaElement [ ] getChildren ( ) throws JavaModelException { } public ArrayList getChildrenOfType ( int type ) throws JavaModelException { } public IClassFile getClassFile ( ) { } public ICompilationUnit getCompilationUnit ( ) { } public Object getElementInfo ( ) throws JavaModelException { } public Object getElementInfo ( IProgressMonitor monitor ) throws JavaModelException { } public String getElementName ( ) { } public abstract IJavaElement getHandleFromMemento ( String token , MementoTokenizer memento , WorkingCopyOwner owner ) { } public IJavaElement getHandleFromMemento ( MementoTokenizer memento , WorkingCopyOwner owner ) { } public String getHandleIdentifier ( ) { } public String getHandleMemento ( ) { } protected void getHandleMemento ( StringBuffer buff ) { } protected abstract char getHandleMementoDelimiter ( ) { } public IJavaModel getJavaModel ( ) { } public IJavaProject getJavaProject ( ) { } public IOpenable getOpenable ( ) { } public IOpenable getOpenableParent ( ) { } public IJavaElement getParent ( ) { } public IJavaElement getPrimaryElement ( ) { } public IJavaElement getPrimaryElement ( boolean checkOwner ) { } public IResource getResource ( ) { } public abstract IResource resource ( ) { } protected IJavaElement getSourceElementAt ( int position ) throws JavaModelException { } public SourceMapper getSourceMapper ( ) { } public ISchedulingRule getSchedulingRule ( ) { } public boolean hasChildren ( ) throws JavaModelException { } public int hashCode ( ) { } public boolean isAncestorOf ( IJavaElement e ) { } public boolean isReadOnly ( ) { } public JavaModelException newNotPresentException ( ) { } protected JavaModelStatus newDoesNotExistStatus ( ) { } public JavaModelException newJavaModelException ( IStatus status ) { } protected Object openWhenClosed ( Object info , IProgressMonitor monitor ) throws JavaModelException { } public String readableName ( ) { } public JavaElement resolved ( Binding binding ) { } public JavaElement unresolved ( ) { } protected String tabString ( int tab ) { } public String toDebugString ( ) { } public String toString ( ) { } protected void toString ( int tab , StringBuffer buffer ) { } public String toStringWithAncestors ( ) { } public String toStringWithAncestors ( boolean showResolvedInfo ) { } protected void toStringAncestors ( StringBuffer buffer ) { } protected void toStringChildren ( int tab , StringBuffer buffer , Object info ) { } public Object toStringInfo ( int tab , StringBuffer buffer ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info , boolean showResolvedInfo ) { } protected void toStringName ( StringBuffer buffer ) { } protected URL getJavadocBaseLocation ( ) throws JavaModelException { } private static IClasspathEntry getRealClasspathEntry ( IJavaProject jproject , IPath containerPath , IPath libPath ) throws JavaModelException { IClasspathContainer container = JavaCore . getClasspathContainer ( containerPath , jproject ) ; if ( container != null ) { IClasspathEntry [ ] entries = container . getClasspathEntries ( ) ; for ( int i = 0 ; i < ( entries . length ) ; i ++ ) { IClasspathEntry curr = entries [ i ] ; if ( curr == null ) { <START_BUG> if ( JavaModelManager . CP_RESOLVE_VERBOSE ) { <END_BUG> JavaModelManager . getJavaModelManager ( ) . verbose_missbehaving_container ( jproject , containerPath , entries ) ; } break ; } IClasspathEntry resolved = JavaCore . getResolvedClasspathEntry ( curr ) ; if ( ( resolved != null ) && ( libPath . equals ( resolved . getPath ( ) ) ) ) { return curr ; } } } return null ; } protected static URL getLibraryJavadocLocation ( IClasspathEntry entry ) throws JavaModelException { } public String getAttachedJavadoc ( IProgressMonitor monitor ) throws JavaModelException { } int getIndexOf ( byte [ ] array , byte [ ] toBeFound , int start ) { } protected String getURLContents ( String docUrlValue ) throws JavaModelException { } }

Fix:
if ( ( JavaModelManager . CP_RESOLVE_VERBOSE ) || ( JavaModelManager . CP_RESOLVE_VERBOSE_FAILURE ) ) {