JDK 19 |
---|
19 masterFixed |
Relates :
|
|
Relates :
|
|
Relates :
|
There is the JDK-8161245 to make compilers trust Enum final fields. It was implicitly implemented by JDK-8234049, which added the wildcard trust for everything in java/lang: https://github.com/openjdk/jdk/blob/c5a0687f80367a3a284dfd56781c371826264d3b/src/hotspot/share/ci/ciField.cpp#L230 It would be better to have the explicit test that verifies the constant folding of Enum fields indeed happens.
|