SmallSet implements both Iterator and Iterable

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: