@ SuppressForbidden @ SuppressWarnings ( "unused" ) public static ClassReader readAndPatchClass ( InputStream in ) throws IOException { final byte [ ] bytecode = readStream ( in ) ; if ( false ) patchClassMajorVersion ( bytecode , Opcodes . V10 + 1 , Opcodes . V10 ) ; return new ClassReader ( bytecode ) ; }
Utility method to load class files of later Java versions by patching them so ASM can read them . Does nothing at the moment .