JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... Because of verifier limitations, the compiler cannot arrange to initialize synthetic fields like this$0 and val$array before the superclass ...
Feb 5, 1997 ... Because of verifier limitations, the compiler cannot arrange to initialize synthetic fields like this$0 and val$array before the superclass ...
The workaround is of course simple: Dont make your fields public. Unfortunately this is difficult when using software that is affected by this bug and for which no source code is available. It simply breaks when changing from Java 6 to Java 7 without giving any error messages.
Compile and run this program: public class xx { public static void main (String [] args) throws Exception { System.out.println (xx.class.getMethod ("foo").getGenericReturnType ()); } public java.util.Map.Entry<String, String> foo () { return null; } } 2.
File an issue Hitting a snag with your Java application and can't find anything in search? Have a small enhancement suggestion for the JDK? File a new issue!
A DESCRIPTION OF THE PROBLEM : The following cutdown when compiled using standard javac will produce a class file which when run will consume over 2gig of memory once the program has stopped executing (ie after the final println). The amount of memory consumed is altered by altering the initial value of the variable k.