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

Looks into indirect types during compilation in presence of native method invocation #1175

Open
pietrobraione opened this issue Jun 21, 2023 · 0 comments

Comments

@pietrobraione
Copy link

pietrobraione commented Jun 21, 2023

This is related to issue #543. I am including (bug.zip) an example Eclipse 2023-06 workspace with a project, a sliced version of https://github.com/pietrobraione/jbse. The project is compiled with Java 8 and contains one class called jbse.base.JAVA_CONCURRENTMAP. This class extends java.util.AbstractMap and overrides the hashCode() method. In the overriding implementation of the hashCode() method there is an invocation to a native method refineOnKeyCombinationsAndBranch. If this invocation is removed, the code compiles correctly. If this invocation is kept, compilation fails with the error:

Description Resource Path Location Type
The type java.lang.invoke.VarHandle cannot be resolved. It is indirectly referenced from required .class files JAVA_CONCURRENTMAP.java /jbse/src/main/java/jbse/base line 1 Java Problem

I am reporting this issue as a related but distinct issue from #543 because I started to experience it only recently, if I do not remember bad it should be since Eclipse 2022-06.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant