|
Relates :
|
|
|
Relates :
|
When compiling this test case:
class Test {
int m(boolean flag) {
int myInt;
label:
{
if (flag) {
myInt = 1;
} else {
break label;
}
return myInt;
}
return -1;
}
}
javac generates this incorrect LVT table for method m:
LocalVariableTable:
Start Length Slot Name Signature
6 0 2 myInt I <-------------- length is set to 0
0 10 0 this LTest;
0 10 1 flag Z
reported in compiler-dev: http://mail.openjdk.java.net/pipermail/compiler-dev/2014-November/009141.html