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

Detect jdk major version using Runtime class #408

Merged

Conversation

pderop
Copy link
Contributor

@pderop pderop commented Apr 17, 2024

in #407 , The BlockHound class is detecting the current jdk major version using InstrumentationUtil.jdkMajorVersion() method that has been introduced in #407 PR (the new InstrumentationUtil.jdkMajorVersion() method is relying on the jdk Runtime.getRuntime() class).

now, there is still another class (NativeWrappingClassFileTransformer) which needs to determine the current jdk major version. Let's update it in order to reuse the InstrumentationUtil instead of relying of java system properties.

@pderop pderop added the type/enhancement A general enhancement label Apr 17, 2024
@pderop pderop added this to the 1.0.9.RELEASE milestone Apr 17, 2024
@pderop pderop self-assigned this Apr 17, 2024
@pderop
Copy link
Contributor Author

pderop commented Apr 17, 2024

@violetagg, thanks for the review!

@pderop pderop merged commit 62dd291 into reactor:master Apr 17, 2024
2 checks passed
@pderop pderop deleted the detect-jdk-major-version-using-runtime-version branch April 17, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants