use of sun.rmi.rmic.BatchEnvironment in project jdk8u_jdk by JetBrains.
the class CFCTest method exerciseClassDefinition.
/**
* Failure is seen when getClassDefinition causes class read
*/
void exerciseClassDefinition() throws Exception {
BatchEnvironment env = new BatchEnvironment(System.out, BatchEnvironment.createClassPath(testClassPath, null, null), null);
try {
ClassDeclaration decl = env.getClassDeclaration(Identifier.lookup(testClassName));
decl.getClassDefinition(env);
} finally {
env.flushErrors();
env.shutdown();
}
}
Aggregations