-
Enhancement
-
Resolution: Fixed
-
P4
-
17, 18, 19
-
b22
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.
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.
- relates to
-
JDK-8286339 compiler/c2/irTests/TestEnumFinalFold.java fails if Enum/String methods are not inlined
-
- Resolved
-
-
JDK-8161250 javac should use indy to compute switch indexes for strings and enums
-
- Open
-
-
JDK-8161245 Enums should be fully optimized
-
- Closed
-