{"record":{"id":"a0275507c585be11","repo":"oracle/graal","slug":"unsupported-annotation-exception-proxy-s","errorCode":null,"errorMessage":"Unsupported annotation exception proxy: %s","messagePattern":"Unsupported annotation exception proxy: (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"compiler/src/jdk.graal.compiler.vmaccess/src/jdk/graal/compiler/vmaccess/HostAnnotationValueConverter.java","lineNumber":324,"sourceCode":"    }\n\n    /**\n     * Converts one reflection annotation value, including JDK exception proxies, into the\n     * representation used by {@link AnnotationValue}.\n     */\n    private static Object hostAnnotationMemberAsAnnotationValueElement(Annotation annotation, Method member, Object value, Function<Class<?>, ResolvedJavaType> classToType) {\n        if (value instanceof TypeNotPresentExceptionProxy proxy) {\n            return new MissingType(proxy.typeName(), proxy.getCause());\n        }\n        if (value instanceof DeferredAnnotationTypeMismatchExceptionProxy proxy) {\n            return new ElementTypeMismatch(proxy.foundType);\n        }\n        if (value instanceof EnumConstantNotPresentExceptionProxy) {\n            return invokeFailingAnnotationMember(annotation, member, classToType);\n        }\n        if (value instanceof ExceptionProxy) {\n            if (!\"sun.reflect.annotation.AnnotationTypeMismatchExceptionProxy\".equals(value.getClass().getName())) {\n                throw new IllegalArgumentException(\"Unsupported annotation exception proxy: \" + value.getClass().getName());\n            }\n            return invokeFailingAnnotationMember(annotation, member, classToType);\n        }\n        if (value instanceof Enum<?> enumValue) {\n            return new EnumElement(classToType.apply(enumValue.getDeclaringClass()), enumValue.name());\n        }\n        if (value instanceof Class<?> classValue) {\n            return classToType.apply(classValue);\n        }\n        if (value instanceof Annotation annotationValue) {\n            return toAnnotationValue(annotationValue, classToType);\n        }\n        Class<?> valueType = value.getClass();\n        if (valueType.isArray()) {\n            int length = Array.getLength(value);\n            List<Object> elements = new ArrayList<>(length);\n            for (int i = 0; i < length; i++) {\n                elements.add(hostAnnotationMemberAsAnnotationValueElement(annotation, member, Array.get(value, i), classToType));","sourceCodeStart":306,"sourceCodeEnd":342,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/compiler/src/jdk.graal.compiler.vmaccess/src/jdk/graal/compiler/vmaccess/HostAnnotationValueConverter.java#L306-L342","documentation":"Error \"Unsupported annotation exception proxy: %s\" thrown in oracle/graal.","triggerScenarios":"Thrown at compiler/src/jdk.graal.compiler.vmaccess/src/jdk/graal/compiler/vmaccess/HostAnnotationValueConverter.java:324 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: Unsupported annotation exception proxy: {}","solutions":["Fix the condition reported by the error: Unsupported annotation exception proxy: {}","Check the throwing call site and ensure its documented preconditions (argument values, types, environment, or configuration) are satisfied before the call."],"exampleFix":"Validate inputs and environment so that the failing condition does not occur: Unsupported annotation exception proxy: {}","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a66e9ccd1d7bf2552883939aa0788dfd0e294aab","analyzedAt":"2026-08-14T13:58:47.161Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}