I want to do the following:
try {
Class.forName(\"MyClass\");
} catch(ClassNotFoundException e) {
ClassPool pool = ClassPool.getDefault();
CtClas
`try {
Class.forName("MyClass");
} catch(ClassNotFoundException e) {
try {
ClassPool pool = ClassPool.getDefault();
CtClass cc = pool.makeClass("MyClass");
Class.forName("MyClass");
catch(Exception e) {
}
}`
Check with this code, sometime jvm optimize the code and shuffle the statements , except in try block.