public boolean isAvailable ( ) { boolean available = false ; String relativeURL = inputSource . getRelativeURL ( ) ; Container container = tcontext . getServletContext ( ) . getModuleContainer ( ) ; if ( container != null ) { if ( options . isDisableJspRuntimeCompilation ( ) == false ) { Entry entry = container . getEntry ( relativeURL ) ; if ( entry != null ) { available = true ; } else { available = inputSource . getLastModified ( ) != 0 ; } } else { available = true ; } if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINER ) ) { logger . logp ( Level . FINER , CLASS_NAME , "isAvailable" , "Container's relativeURL [" + relativeURL + "] " + "is available [" + available + "]" ) ; } } else { String realPath = tcontext . getRealPath ( relativeURL ) ; if ( options . isDisableJspRuntimeCompilation ( ) == false ) { available = new File ( realPath ) . exists ( ) ; } else { available = true ; } if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINER ) ) { logger . logp ( Level . FINER , CLASS_NAME , "isAvailable" , "relativeURL [" + relativeURL + "] " + "realPath [" + realPath + "] is available [" + available + "]" ) ; } } return available ; }
Defect 268176 . 1