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

javac, compiler regression iterable + captured type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 8
    • tools
    • b87
    • Verified

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: