-
Notifications
You must be signed in to change notification settings - Fork 738
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
jdk_lang Test7157574 segfault #1524
Comments
Given |
Here is a simple testcase:
We lookup a concrete method from j.l.Object. findVirtual() returns the concrete method but describes it as an interface method. We run off the end of the iTable looking for the method. |
The curse of Interfaces being able to lookup Object methods. I think we're missing a check in ie:
i.e. we should be checking whether the
|
I think the problem is outside lookupinterface() and is in MethodHandles.java. The class in question is in fact an interface, so the test doesn't help. MethodHandles.findVirtual() assumes that if the given class is an interface, all methods are interface methods:
|
The text was updated successfully, but these errors were encountered: