oracle/graal · error · IllegalArgumentException
Annotation exception proxy did not throw for %s
Error message
Annotation exception proxy did not throw for %s
What it means
Error "Annotation exception proxy did not throw for %s" thrown in oracle/graal.
Source
Thrown at compiler/src/jdk.graal.compiler.vmaccess/src/jdk/graal/compiler/vmaccess/HostAnnotationValueConverter.java:361
}
return List.copyOf(elements);
}
return value;
}
/**
* Invokes a member known to contain an opaque JDK exception proxy so the public annotation API
* exposes the deferred failure details.
*/
private static Object invokeFailingAnnotationMember(Annotation annotation, Method member, Function<Class<?>, ResolvedJavaType> classToType) {
try {
Proxy.getInvocationHandler(annotation).invoke(annotation, member, null);
} catch (EnumConstantNotPresentException | AnnotationTypeMismatchException failure) {
return annotationFailureAsAnnotationValueElement(member, failure, classToType);
} catch (Throwable failure) {
throw sneakyThrow(failure);
}
throw new IllegalArgumentException("Annotation exception proxy did not throw for " + member);
}
/**
* Rethrows {@code failure} without changing its type.
*/
@SuppressWarnings("unchecked")
private static <T extends Throwable> RuntimeException sneakyThrow(Throwable failure) throws T {
throw (T) failure;
}
}
View on GitHub (pinned to a66e9ccd1d)
Solutions
- Fix the condition reported by the error: Annotation exception proxy did not throw for {}
- Check the throwing call site and ensure its documented preconditions (argument values, types, environment, or configuration) are satisfied before the call.
Example fix
Validate inputs and environment so that the failing condition does not occur: Annotation exception proxy did not throw for {} When it happens
Trigger: Thrown at compiler/src/jdk.graal.compiler.vmaccess/src/jdk/graal/compiler/vmaccess/HostAnnotationValueConverter.java:361 when the library encounters an invalid state.
Common situations: Occurs when a caller violates the contract guarded by this check: Annotation exception proxy did not throw for {}
AI-assisted analysis of oracle/graal@a66e9ccd1d (2026-08-14).
Data as JSON: /api/errors/c2933e796cf071da.
Report an issue: GitHub.