Browse Source

Enums won't have superclasses

kindlich 4 years ago
parent
commit
370c2af1e9
No known key found for this signature in database

+ 1
- 1
JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java View File

339
 			definition.setSuperType(loadType(context, cls.getAnnotatedSuperclass()).type);
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
 			definition.setSuperType(loadType(context, Object.class, false, false).type);
343
 			definition.setSuperType(loadType(context, Object.class, false, false).type);
344
 		}
344
 		}
345
 
345
 

Loading…
Cancel
Save