JDK-8049075 : javac, wildcards and generic vararg method invocation not accepted
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8u40,9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-07-02
  • Updated: 2015-04-15
  • Resolved: 2014-07-04
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 8 JDK 9
8u40Fixed 9 b23Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
This code:

public class Test {
    interface Iface<T> {
        String m(T... t);
    }

    public static void run() {
        Iface<? super Integer> i = null;
        i.m(Integer.valueOf(1), Integer.valueOf(1), Integer.valueOf(1));
    }
}

is not being accepted by the compiler when it should
Comments
Two more JCK failures caused by this issue: lang/INFR/infr064/infr06401m02/infr06401m02.html lang/INFR/infr064/infr06401m12/infr06401m12.html
21-07-2014

This issue cases following JCK tests to fail: lang/INFR/infr063/infr06301m04/infr06301m04.html lang/INFR/infr063/infr06301m14/infr06301m14.html
17-07-2014