Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1.2
-
Fix Version/s: 3.1.3
-
Component/s: Compiler: Optimizing
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
Currently, Jikes RVM comes with two implementations of an "empty iterator": org.jikesrvm.util.EmptyIterator and org.jikesrvm.compilers.opt.util.EmptyIterator. Both implementations have shortcomings (no singleton iterator and no generics, respectively) and don't throw the exceptions expected of the Java 7 java.util.Collections.emptyIterator http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#emptyIterator%28%29.
The attached patch consolidates both implementations into a single, generic org.jikesrvm.util.EmptyIterator.