-
Bug
-
Resolution: Unresolved
-
P4
-
repo-valhalla
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.