Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-47365] Throw missing registration errors for proxy classes #7060

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

graalvmbot
Copy link
Collaborator

The new exception will be as follows:

org.graalvm.nativeimage.MissingReflectionRegistrationError: The program tried to reflectively access the proxy class inheriting [Interface1, Interface2] without it being registered for runtime reflection. Add [Interface1, Interface2] to the dynamic proxy metadata to solve this problem. Note: The order of interfaces used to create proxies matters. See https://www.graalvm.org/latest/reference-manual/native-image/metadata/#dynamic-proxy for help.
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.reflect.MissingReflectionRegistrationUtils.forProxy(MissingReflectionRegistrationUtils.java:116)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.reflect.proxy.DynamicProxySupport.getProxyClass(DynamicProxySupport.java:176)
	at java.base@20.0.1/java.lang.reflect.Proxy.getProxyConstructor(Proxy.java:47)
	at java.base@20.0.1/java.lang.reflect.Proxy.getProxyClass(Proxy.java:398)

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 25, 2023
@graalvmbot graalvmbot merged commit 4bd466c into master Aug 1, 2023
@graalvmbot graalvmbot deleted the lottet/GR-47365-base-proxy-mre branch August 1, 2023 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants