-
Enhancement
-
Resolution: Won't Fix
-
P3
-
None
-
6
-
generic
-
generic
When using -target 5 or newer, javac generates code that affects class
initialization of class literals differently than older targets:
http://java.sun.com/j2se/1.5.0/compatibility.html#literal
Unfortunately, many developers are unaware of the information provided
in this page and some assistance from the compiler could be useful.
The compiler should emit a warning about the situation. It is not
immediately apparent how this should be integrated with the existing
-Xlint feature. Should this be turned on with -Xlint:all?
initialization of class literals differently than older targets:
http://java.sun.com/j2se/1.5.0/compatibility.html#literal
Unfortunately, many developers are unaware of the information provided
in this page and some assistance from the compiler could be useful.
The compiler should emit a warning about the situation. It is not
immediately apparent how this should be integrated with the existing
-Xlint feature. Should this be turned on with -Xlint:all?
- relates to
-
JDK-6867727 REGRESSION: static initialization delayed too long under Java 1.6
- Closed