Closed joffrey-bion closed 7 years ago
For enum types, we get additional reflective information in the template (see below), which is not desired. We should probably not display any template at all for enums.
{ "declaringClass": { "name": "", "enumConstants": [], "protectionDomain": { "principals": [], "permissions": { "readOnly": true }, "classLoader": {}, "codeSource": { "location": { "protocol": "", "host": "", "port": 0, "file": "", "query": "", "authority": "", "path": "", "userInfo": "", "ref": "", "content": {}, "defaultPort": 0 }, "certificates": [], "codeSigners": [] } }, "modifiers": 0, "interface": true, "array": true, "primitive": true, "annotatedInterfaces": [], "annotatedSuperclass": { "type": { "typeName": "" }, "annotations": [], "declaredAnnotations": [] }, "annotations": [], "canonicalName": "", "classLoader": {}, "classes": [], "constructors": [], "declaredAnnotations": [], "declaredClasses": [], "declaredConstructors": [], "declaredFields": [], "declaredMethods": [], "enclosingConstructor": { "parameters": [], "declaredAnnotations": [], "parameterTypes": [], "exceptionTypes": [], "modifiers": 0, "annotations": [], "parameterAnnotations": [], "name": "", "typeParameters": [], "synthetic": true, "parameterCount": 0, "varArgs": true, "annotatedReturnType": { "type": { "typeName": "" }, "annotations": [], "declaredAnnotations": [] }, "genericExceptionTypes": [], "genericParameterTypes": [], "annotatedReceiverType": { "type": { "typeName": "" }, "annotations": [], "declaredAnnotations": [] }, "annotatedParameterTypes": [], "annotatedExceptionTypes": [], "accessible": true }, "enclosingMethod": { "parameters": [], "declaredAnnotations": [], "name": "", "parameterTypes": [], "exceptionTypes": [], "modifiers": 0, "annotations": [], "parameterAnnotations": [], "typeParameters": [], "default": true, "synthetic": true, "parameterCount": 0, "varArgs": true, "annotatedReturnType": { "type": { "typeName": "" }, "annotations": [], "declaredAnnotations": [] }, "defaultValue": {}, "genericExceptionTypes": [], "genericParameterTypes": [], "genericReturnType": { "typeName": "" }, "bridge": true, "annotatedParameterTypes": [], "annotatedExceptionTypes": [], "annotatedReceiverType": { "type": { "typeName": "" }, "annotations": [], "declaredAnnotations": [] }, "accessible": true }, "fields": [], "genericInterfaces": [], "genericSuperclass": { "typeName": "" }, "interfaces": [], "methods": [], "package": { "name": "", "annotations": [], "declaredAnnotations": [], "sealed": true, "implementationTitle": "", "implementationVendor": "", "implementationVersion": "", "specificationTitle": "", "specificationVendor": "", "specificationVersion": "" }, "signers": [], "simpleName": "", "typeName": "", "typeParameters": [], "annotation": true, "anonymousClass": true, "enum": true, "localClass": true, "memberClass": true, "synthetic": true } }
For enum types, we get additional reflective information in the template (see below), which is not desired. We should probably not display any template at all for enums.