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

Check for "invoke" in getCallerMethodName() #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vpa1977
Copy link

@vpa1977 vpa1977 commented Jan 30, 2024

This resolves #28

Java 21 has same "shorter" stacktrace same as Mac OS X. The method name in the trace is "invoke" instead of "invoke0".
This is a bit brittle, but since this approach is already used in the project, I have just updated the condition.

Probably the better way would be to check the environment.

Java 21 has same "shorter" stacktrace same as Mac OS X.
The method name in the trace is "invoke" instead of "invoke0".
This is a bit brittle, but since this code is already used in the project,
I have just updated the condition.
Probably the better way would be to check the environment.
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

Successfully merging this pull request may close these issues.

metro-policy fails to build with Java 21
1 participant