-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unexpected "Unsupported type jdk.internal.reflect.MethodAccessorGenerator is reachable" error #2192
Comments
Testing a substitution to get |
PR sent #2194 |
@galderz I think the problem already starts at |
@galderz thanks for the pointers. It looks like we have a general problem with allowing serialization specific code to wander off into stuff that we cannot support. |
The underlying issue is probably not related to I'm trying to come up with an earlier cut-off of serialization code so that we get the true call path that causes the problem. |
My idea is to add the following code to disallow serialization:
Adding just that fails our gates, so I have to investigate further. But it might still help you, so you can give it a try if you want. |
@christianwimmer Tried your suggestion but didn't work, we've got failures early on (e.g. here). |
@galderz Thanks, I'm always amazed how bad Java code can be: https://github.com/google/gson/blob/4d735f190336ddf241eee48fa8495eabf637a330/gson/src/main/java/com/google/gson/internal/UnsafeAllocator.java#L62 |
@galderz Here is a less restrictive code to prevent usage of
|
@christianwimmer Apologies for the delay, testing your suggestion. |
This doesn't yet work for us (see here). I'm checking with the other Quarkus devs to see where these xstream dependency is coming from and its use. |
Btw @christianwimmer, your latest suggestion would still make the original reported error appear eventually since you're forbidding paths to |
Oh,I think this is only to diagnose the real root path to |
Just spotted a Quarkus/Graal master issue, see (quarkusio/quarkus#7422):
I suspect this is caused by the following change eab7e93
The call path above is not under Quarkus control, so I'd assume this is a regression on svm?
The text was updated successfully, but these errors were encountered: