Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-JSR-6
-
None
Description
When calling one of the methods .each(), .find() etc. the runtime tries to determine whether an iterator can be created for the object in question. This happens in Invoker.asIterator(Object). If none of the special cases holds, the object class is examined for the method iterator().
Instead the meta class should be examined. This allows to add an iterator via a Category.