private boolean initCheckTypeModifiers ( ) { Class < ? > classInfoclass = Reflections . loadClass ( CLASSINFO_CLASS_NAME , new ClassLoaderResourceLoader ( classFileServices . getClass ( ) . getClassLoader ( ) ) ) ; if ( classInfoclass != null ) { try { Method setFlags = AccessController . doPrivileged ( GetDeclaredMethodAction . of ( classInfoclass , "setFlags" , short . class ) ) ; return setFlags != null ; } catch ( Exception exceptionIgnored ) { BootstrapLogger . LOG . usingOldJandexVersion ( ) ; return false ; } } else { return true ; } }
checking availability of ClassInfo . setFlags method is just workaround for JANDEX - 37