JDK-8011432 : javac, compiler regression iterable + captured type
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-04-04
  • Updated: 2013-06-06
  • Resolved: 2013-04-10
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
8 b87Fixed
Related Reports
Relates :  
Relates :  
Description
This code:

public class IterableTest {
     interface Data extends Iterable<String> { }

     void test(Iterable<? extends Data> t) {
         for(Object a: t.iterator().next());
     }
} 

used to compile with 1.8.0 b82, it doesn't compile with TL.
Comments
verified in jdk8 b92
06-06-2013

waiting for jprt results
09-04-2013

A failing test from nightlies: javac/varargs/simplified/sva05
05-04-2013