Javac is currently introducing early construction to classes if they declare any strict field. This feature is reserved for value classes. We must turn this off for general strict fields and fix resulting compile errors within the codebase.
The @Strict annotation is preserved for now, but it will not cause javac translation strategy change aside from adding the ACC_STRICT_INIT flag.
This RFE will update tests and benchmarks that use the implicit auto early construction from @Strict to use explicit early construction.
The @Strict annotation is preserved for now, but it will not cause javac translation strategy change aside from adding the ACC_STRICT_INIT flag.
This RFE will update tests and benchmarks that use the implicit auto early construction from @Strict to use explicit early construction.
- blocks
-
JDK-8376046 [lworld] Adjust @NullRestricted tests to remove @Strict
-
- Resolved
-
- causes
-
JDK-8376815 [lworld] compiler/valhalla/inlinetypes/TestTrivialMethods.java still fails after JDK-8373692
-
- Resolved
-
- relates to
-
JDK-8376045 [lworld] Treat @NullRestricted fields as ACC_STRICT_INIT on load
-
- Resolved
-
- links to
-
Commit(lworld)
openjdk/valhalla/c259bd40
-
Review(lworld)
openjdk/valhalla/1952