You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found during code review: This program triggers an AIOOB in compiler.codegen.ExceptionLabel.placeEnd
I could observe it all the way back to 4.15, but problem likely goes back much farther back in time:
public class X implements AutoCloseable {
public void close() throws Exception {}
public static void foo(String[] args) {
for (String arg : args) {
try (X x = new X()) {
if (args.length < 1) {
System.out.println("if");
break;
} else {
System.out.println("else");
break;
}
} finally {
System.out.println("finally");
break;
}
}
}
public static void main(String[] args) {
foo(new String[] { "Hello", "World" });
}
}
The text was updated successfully, but these errors were encountered:
srikanth-sankaran
changed the title
[TWR] AIOOB
[TWR] AIOOB in compiler.codegen.ExceptionLabel.placeEnd when using try block with resources
Nov 6, 2024
Found during code review: This program triggers an AIOOB in
compiler.codegen.ExceptionLabel.placeEnd
I could observe it all the way back to 4.15, but problem likely goes back much farther back in time:
The text was updated successfully, but these errors were encountered: