private final static void retransformClass ( Class < ? > clazz ) { if ( detailedTransformTrace && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "retransformClass" , clazz ) ; try { instrumentation . retransformClasses ( clazz ) ; } catch ( Throwable t ) { Tr . error ( tc , "INSTRUMENTATION_TRANSFORM_FAILED_FOR_CLASS_2" , clazz . getName ( ) , t ) ; } if ( detailedTransformTrace && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "retransformClass" ) ; }
Ask the JVM to retransform the class that has recently been enabled for trace . This class will explicitly call the class loader to load and initialize the class to work around an IBM JDK issue with hot code replace during class initialization .