JDK-8005053 : SmallSet implements both Iterator and Iterable
  • Type: Sub-task
  • Component: core-libs
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2012-12-14
  • Updated: 2013-04-05
  • Resolved: 2013-04-05
Related Reports
Relates :  
Description
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.
Comments
No longer an issue since Iterator.forEach has been renamed to forEachRemaining.
05-04-2013

fix available in lambda repo
14-12-2012