mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8047719: Incorrect LVT in switch statement
Reviewed-by: jjg, jlahoda
This commit is contained in:
parent
2f5e083cee
commit
ce0935812b
6 changed files with 25 additions and 38 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue