-
Notifications
You must be signed in to change notification settings - Fork 125
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
CannotAccessFieldException reading hidden class #64
Comments
It is because the problem is not with the Unsafe strategy but with the crawling. Jamm is using reflection to visit the object tree but if some objects are not accessible due to the module system it will try to use Unsafe to by pass the module system. Unfortunately, if the class is a hidden one it will not be able to access the field. |
That option works for me. It wasn't immediately clear to me that was how to fix it. Thanks! |
Cool. Can I close this ticket? |
It still seems a little odd that it doesn't attempt to estimate, similar to how the README describes it. There's no other real option except to add-open for various any class that keeps a reference to a lambda. But I've accepted that workaround for now. |
I can let it open for now and see if I can find a solution. |
|
Using jamm 0.4.0, Apache Impala is running into
That's not the outcome I expected from reading https://github.com/jbellis/jamm#unsafe. I thought it would try to guess the object's size.
The text was updated successfully, but these errors were encountered: