Commit 895bff70 authored by Eric Bruneton's avatar Eric Bruneton

Add failing test showing the issue.

parent 8f8c4b16
......@@ -92,7 +92,14 @@ public class AnalyzerAdapterTest extends AsmTest {
super.visitMethod(access, name, desc, signature, exceptions);
AnalyzedFramesInserter inserter = new AnalyzedFramesInserter(methodVisitor);
AnalyzerAdapter analyzerAdapter =
new AnalyzerAdapter(api, owner, access, name, desc, inserter);
new AnalyzerAdapter(api, owner, access, name, desc, inserter) {
public void visitMaxs(int maxStack, int maxLocals) {
// AnalyzerAdapter should correctly recompute maxLocals from scratch.
super.visitMaxs(maxStack, 0);
inserter.analyzer = analyzerAdapter;
return analyzerAdapter;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment