浏览代码

Fix Iterator not having methods / fixed stdlibs not being reloadable

Jared 5 年前
父节点
当前提交
84b407af0d
没有帐户链接到提交者的电子邮件

+ 1
- 1
JavaShared/src/main/java/org/openzen/zenscript/javashared/prepare/JavaPrepareDefinitionVisitor.java 查看文件

@@ -95,7 +95,7 @@ public class JavaPrepareDefinitionVisitor implements DefinitionVisitor<JavaClass
95 95
 		}
96 96
 		
97 97
 		{
98
-			JavaNativeClass iterator = new JavaNativeClass(JavaClass.ITERATOR);
98
+			JavaNativeClass iterator = new JavaNativeClass(new JavaClass("java.util", "Iterator", JavaClass.Kind.INTERFACE));
99 99
 			iterator.addMethod("empty", new JavaMethod(JavaClass.COLLECTIONS, JavaMethod.Kind.STATIC, "emptyIterator", false, "()Ljava/lang/Iterator;", JavaModifiers.STATIC | JavaModifiers.PUBLIC, false));
100 100
 			iterator.addInstanceMethod("hasNext", "hasNext", "()Z");
101 101
 			iterator.addInstanceMethod("next", "next", "()Ljava/lang/Object;");

正在加载...
取消
保存