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 ...
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
A DESCRIPTION OF THE PROBLEM : When an array for which a getter/setter exists is made public, it is completely ignored by XMLEncoder.writeObject().ERROR MESSAGES/STACK TRACES THAT OCCUR : The example doesnt produce any error messages.
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # #. An error report file with more information is saved as: # /export/kvn/VM/hs_err_pid20822.log.
A DESCRIPTION OF THE PROBLEM : Direct array element access (within a single line) of a wildcard generic type with an array typed upper bound fails with the following compilation error: GenericTest.java:6: error: array required, but CAP#1 found return foo.call()[0]