Pārlūkot izejas kodu

Enums won't have superclasses

kindlich 4 gadus atpakaļ
vecāks
revīzija
370c2af1e9
Šim parakstam datu bāzē netika atrasta zināma atslēga

+ 1
- 1
JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java Parādīt failu

@@ -339,7 +339,7 @@ public class JavaNativeModule {
339 339
 			definition.setSuperType(loadType(context, cls.getAnnotatedSuperclass()).type);
340 340
 		}
341 341
 
342
-		if (!foundRegistry && definition.getSuperType() == null && cls != Object.class) {
342
+		if (!foundRegistry && definition.getSuperType() == null && cls != Object.class && !(definition instanceof EnumDefinition)) {
343 343
 			definition.setSuperType(loadType(context, Object.class, false, false).type);
344 344
 		}
345 345
 

Notiek ielāde…
Atcelt
Saglabāt