public void testB262() throws ClassNotFoundException
{
final JavaClass clazz = getTestClass(PACKAGE_BASE_NAME+".data.PLSETestEnum");
final ClassGen gen = new ClassGen(clazz);
final ConstantPoolGen pool = gen.getConstantPool();
final Method m = gen.getMethodAt(0);
final MethodGen mg = new MethodGen(m, gen.getClassName(), pool);
final InstructionList il = mg.getInstructionList();
final InstructionHandle ih = il.findHandle(3);
final InvokeInstruction ii = (InvokeInstruction)(ih.getInstruction());
final String cn = ii.getClassName(pool);
assertEquals("[Lorg.apache.bcel.data.PLSETestEnum;", cn);
}
|