Search in sources :

Example 1 with BatchEnvironment

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();
    }
}
Also used : ClassDeclaration(sun.tools.java.ClassDeclaration) BatchEnvironment(sun.rmi.rmic.BatchEnvironment)

Aggregations

BatchEnvironment (sun.rmi.rmic.BatchEnvironment)1 ClassDeclaration (sun.tools.java.ClassDeclaration)1