fail("Invalid code should have triggered a BadBytecode exception");
}
public void testCodeFalloff() throws Exception {
CtMethod method = generateCodeFalloff(ClassPool.getDefault());
Analyzer analyzer = new Analyzer();
try {
analyzer.analyze(method.getDeclaringClass(), method.getMethodInfo2());
} catch (BadBytecode e) {
return;
}
fail("Code falloff should have triggered a BadBytecode exception");