Commit 9eb4da27 authored by ebruneton's avatar ebruneton
Browse files

fixed bug in visitLocalVariable (update max locals: 'L' was used instead of 'J' for 'long')

[[Split portion of a mixed commit.]]
parent 588b0c8c
......@@ -1060,7 +1060,7 @@ class MethodWriter implements MethodVisitor {
if(computeMaxs) {
// updates max locals
char c = desc.charAt(0);
int n = index + ( c=='L' || c=='D' ? 2 : 1);
int n = index + (c == 'J' || c == 'D' ? 2 : 1);
if (n > maxLocals) {
maxLocals = n;
}
......
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