Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8011432

javac, compiler regression iterable + captured type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 8
    • 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.

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

              Created:
              Updated:
              Resolved: