Quellcode durchsuchen

Skip non-linear interface implementations for Native classes

Fixes an issue where Std::List would implement Iterable and therefore break the scripts.
kindlich vor 5 Jahren
Ursprung
Commit
fb3382704d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden

+ 7
- 0
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/definitions/JavaMemberVisitor.java Datei anzeigen

@@ -190,6 +190,13 @@ public class JavaMemberVisitor implements MemberVisitor<Void> {
190 190
 			for (IDefinitionMember imember : member.members)
191 191
 				imember.accept(this);
192 192
 		} else {
193
+			//TODO: Fixme???
194
+			// What should I do if a native class has interfaces to be visited?
195
+			if(javaModule.getNativeClassInfo(member.definition) != null) {
196
+				return null;
197
+			}
198
+
199
+
193 200
 			throw new UnsupportedOperationException("Non-inline interface implementations not yet available");
194 201
 		}
195 202
 		return null;

Laden…
Abbrechen
Speichern