JDK-6268476 : Arrays and super wildcards broken
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux,windows_xp
  • CPU: generic,x86
  • Submitted: 2005-05-11
  • Updated: 2010-04-02
  • Resolved: 2006-01-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b67Fixed
Related Reports
Duplicate :  
Relates :  
Description
This program doesn't compile:

import java.util.List;
 
class Test {
    void foo(List<? super Object[]> l) {
        l.add(new Object[0]);
    }
}

See: http://forum.java.sun.com/thread.jspa?threadID=625907

###@###.### 2005-05-11 09:37:07 GMT

Comments
SUGGESTED FIX http://sa.sfbay.sun.com/projects/langtools_data/mustang/6268476/
26-01-2006

EVALUATION This is most likely due to a problem with calculating lowerbounds or supertypes for wildcards with arrays. ###@###.### 2005-05-11 09:09:35 GMT
11-05-2005