8047719: Incorrect LVT in switch statement

Reviewed-by: jjg, jlahoda
This commit is contained in:
Vicente Romero 2014-06-27 20:32:12 +01:00
parent 2f5e083cee
commit ce0935812b
6 changed files with 25 additions and 38 deletions

View file

@ -153,7 +153,6 @@ public class LocalVariableTableTest extends LocalVariableTestBase {
@ExpectedLocals(name = "inTry", type = "D")
@ExpectedLocals(name = "inSync", type = "F")
@ExpectedLocals(name = "inDo", type = "B")
@ExpectedLocals(name = "inSwitch", type = "S")
@ExpectedLocals(name = "inFor", type = "J")
@ExpectedLocals(name = "s", type = "Ljava/util/stream/Stream;")
public void deepScope() {
@ -179,17 +178,6 @@ public class LocalVariableTableTest extends LocalVariableTestBase {
}
}
@ExpectedLocals(name = "i", type = "I", scope = 0)
@ExpectedLocals(name = "i", type = "J", scope = 1)
public void reuseByLong() {
{
int i = 0;
}
{
long i = 1;
}
}
class LocalVariableTable implements VariableTable {
final LocalVariableTable_attribute att;