|
@@ -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
|
|