JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... For example, the following program would fail at runtime: <pre> ...
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... For example, the following program would fail at runtime: <pre> ...
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.
When run with Java 1.6_21 the code works fine regardless of the access specifier of arr.ERROR MESSAGES/STACK TRACES THAT OCCUR : The example doesnt produce any error messages. REPRODUCIBILITY : This bug can be reproduced always.
JDK-8207027 - Lookup.accessClass fails for an array type in the same package when assertions are enabled. Description. Invoking attached sample code with -esa option results in assertion error.
GenericTest.java:6: error: array required, but CAP#1 found return foo.call()[0]Relevant spec text from 15.10.3 in JLS 8: "The type of the array reference expression must be an array type (call it T[], an array whose components are of type T), or a compile-time error occurs."