Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8001632 Umbrella: Library Lambdafication
  3. JDK-8005053

SmallSet implements both Iterator and Iterable

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      The class jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/analysis/SmallSet.java implements both Iterable and Iterator, which confuses the compiler if both Iterator and Iterable have a default forEach method. The safest way to avoid this compilation error is to override forEach and provide an implementation of forEach in SmallSet.

            akhil Akhil Arora (Inactive)
            akhil Akhil Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: