-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: repo-valhalla
-
Component/s: tools
in theory it shouldn't be possible with the current code but we should have at least a test for this situation:
value class Test {
static String s0;
String s;
String ss;
Test(boolean b) {
s0 = null;
s = s0; // no local proxy variable for s0 as it is static
ss = s;
super();
}
public static void main(String... args) {
Test t = new Test(true);
}
}
value class Test {
static String s0;
String s;
String ss;
Test(boolean b) {
s0 = null;
s = s0; // no local proxy variable for s0 as it is static
ss = s;
super();
}
public static void main(String... args) {
Test t = new Test(true);
}
}
- links to
-
Commit(lworld)
openjdk/valhalla/a62dd02b
-
Review(lworld)
openjdk/valhalla/2008