Buggy code:
private Object getSpecialAttribute ( String name ) { } public final boolean allowAttribute ( String name ) { } public final Object getFacade ( ) { } public final void setFacade ( Object obj ) { } public final ContextManager getContextManager ( ) { } public final void setContextManager ( ContextManager cm ) { } public final Container getContainer ( ) { } public final int getState ( ) { } void setState ( int state ) { } public final void init ( ) throws TomcatException { } public void shutdown ( ) throws TomcatException { } public final String getPath ( ) { } public final void setPath ( String path ) { } public final void setHost ( String h ) { } public final String getHost ( ) { } public final void setDocBase ( String docB ) { } public final String getDocBase ( ) { } public final String getAbsolutePath ( ) { } public final void setAbsolutePath ( String s ) { } public String getProperty ( String n ) { } public void setProperty ( String n , String v ) { } public final void setReloadable ( boolean b ) { } public final boolean getReloadable ( ) { } public final void setServletAPI ( String s ) { } public final String getServletAPI ( ) { } public final String [ ] getWelcomeFiles ( ) { } public final void addWelcomeFile ( String s ) { } public final String getInitParameter ( String name ) { } public final void addInitParameter ( String name , String value ) { } public final Enumeration getInitParameterNames ( ) { } public final Object getAttribute ( String name ) { } public final Enumeration getAttributeNames ( ) { } public final void setAttribute ( String name , Object object ) { } public final void removeAttribute ( String name ) { } public final void addTaglib ( String uri , String location ) { } public final String getTaglibLocation ( String uri ) { } public final Enumeration getTaglibs ( ) { } public final void addEnvEntry ( String name , String type , String value , String description ) { } public final String getEnvEntryType ( String name ) { } public final String getEnvEntryValue ( String name ) { } public final Enumeration getEnvEntries ( ) { } public final String getDescription ( ) { } public final void setDescription ( String description ) { } public final void setIcon ( String icon ) { } public final boolean isDistributable ( ) { } public final void setDistributable ( boolean isDistributable ) { } public final int getSessionTimeOut ( ) { } public final void setSessionTimeOut ( int sessionTimeOut ) { } public final FileNameMap getMimeMap ( ) { } public final void addContentType ( String ext , String type ) { } public final String getErrorPage ( int errorCode ) { } public final void addErrorPage ( String errorType , String value ) { } public final String getErrorPage ( String errorCode ) { } public final String getAuthMethod ( ) { } public final String getRealmName ( ) { } public final String getFormLoginPage ( ) { } public final String getFormErrorPage ( ) { } public final void setFormLoginPage ( String page ) { } public final void setFormErrorPage ( String page ) { } public final void setLoginConfig ( String authMethod , String realmName , String formLoginPage , String formErrorPage ) { } public final Enumeration getContainers ( ) { } public final Enumeration getContainerLocations ( ) { } public final Container getContainer ( String path ) { } public final void removeContainer ( Container ct ) throws TomcatException { } public final void addServlet ( Handler wrapper ) throws TomcatException { } public final void removeServletByName ( String servletName ) throws TomcatException { } public final Handler getServletByName ( String servletName ) { } public final Enumeration getServletNames ( ) { } public final ClassLoader getClassLoader ( ) { } public final void setClassLoader ( ClassLoader cl ) { } public final boolean shouldReload ( ) { <START_BUG> if ( ( dependM ) != null ) <END_BUG> return dependM . shouldReload ( ) ; return reload ; } public final void setReload ( boolean b ) { } public final void addClassPath ( URL url ) { } public final URL [ ] getClassPath ( ) { } public final void setDependManager ( DependManager dm ) { } public final DependManager getDependManager ( ) { } public final void setDebug ( int level ) { } public final int getDebug ( ) { } public final String toString ( ) { } public final String getId ( ) { } public final void log ( String msg ) { } public final void log ( String msg , Throwable t ) { } public final void log ( String msg , Throwable t , int level ) { } public final void logServlet ( String msg , Throwable t ) { } public final void setLogger ( Logger logger ) { } public final void setServletLogger ( Logger logger ) { } public final Log getLog ( ) { } public final Log getServletLog ( ) { } public final void setEngineHeader ( String s ) { } public final String getEngineHeader ( ) { } public final void setWorkDir ( String workDir ) { } public final File getWorkDir ( ) { } public final void setWorkDir ( File workDir ) { } public final void addHostAlias ( String alias ) { } public final Enumeration getHostAliases ( ) { } public final void setTrusted ( boolean t ) { } public final boolean isTrusted ( ) { } public final void addInterceptor ( BaseInterceptor ri ) throws TomcatException { } }

Fix:
if ( ( ! ( reload ) ) && ( ( dependM ) != null ) )