JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... The solution is probably to have some compiler analysis of the code ... For example, the following program would fail at runtime: <pre> ...
Feb 5, 1997 ... The solution is probably to have some compiler analysis of the code ... For example, the following program would fail at runtime: <pre> ...
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]
2 JRE Expiration Date in the Java Platform, Standard Edition Deployment Guide. Bug Fixes. This release contains the fix for the security vulnerability described ...
Now, with Java1.5, Comparable is a generic type. Thus, after genericification, the above source code line, should read.STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Compile the provided source code (e.g.: with "javac com/mn/tools/test/bugs/java/GenericArrayTest2.java").