| class BugSample<T> implements Iterator<T> { |
| |
| public boolean hasNext() { throw new UnsupportedOperationException("This method is not available"); } |
| |
| public void remove() { throw new UnsupportedOperationException("This method is not available"); } |
| |
| public T next() { throw new UnsupportedOperationException("This method is not available"); } |
| } |
| ----- |
| public class BugSample<T> extends groovy.lang.GroovyObjectSupport implements java.util.Iterator<T>, groovy.lang.GroovyObject { |
| public boolean hasNext() { |
| return false; |
| } |
| |
| public void remove() { |
| return ; |
| } |
| |
| public T next() { |
| return null; |
| } |
| |
| public java.lang.Object getProperty(java.lang.String property) { |
| return null; |
| } |
| |
| public void setProperty(java.lang.String property, java.lang.Object newValue) { |
| return ; |
| } |
| |
| public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args) { |
| return null; |
| } |
| |
| public groovy.lang.MetaClass getMetaClass() { |
| return null; |
| } |
| |
| public void setMetaClass(groovy.lang.MetaClass metaClass) { |
| return ; |
| } |
| |
| } |
| --- |