javac, compiler regression iterable + captured type

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 8
    • Component/s: tools
    • b87
    • Verified

      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.

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: