-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: repo-valhalla
-
Component/s: tools
for code like:
```
value class Test {
static class Foo {
int x;
int getX() { return x; }
}
private final Foo data = new Foo();
Test() {
data.getX();
super();
}
}
```
javac generates the initialization: `data = new Foo();` twice at the beginning of the constructor. Once by the algo that generates local proxies and another one by the normalization code in Gen.
```
value class Test {
static class Foo {
int x;
int getX() { return x; }
}
private final Foo data = new Foo();
Test() {
data.getX();
super();
}
}
```
javac generates the initialization: `data = new Foo();` twice at the beginning of the constructor. Once by the algo that generates local proxies and another one by the normalization code in Gen.
- links to
-
Commit(lworld)
openjdk/valhalla/204f8036
-
Review(lworld)
openjdk/valhalla/1686