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

Revert OperatingSystemMXBean to previous impl and update the logic #77

Merged
merged 3 commits into from
Apr 5, 2019

Conversation

chamilaadhi
Copy link

@chamilaadhi chamilaadhi commented Mar 15, 2019

Purpose

reverting #75 and update OperatingSystemMXBean to work with jdk 11 with minimal code change

This pr change OperatingSystemMXBean to the previous state and only add the following section as a change (add the condition clause). From JDK9 onwards these method were made public. so explicitly calling the setAccessible cause issues in jdk11

    if (!Modifier.isPublic(method.getModifiers())) {
        method.setAccessible(true);
    }

@AnuGayan AnuGayan merged commit 0d8f448 into wso2:1.x.x_java10 Apr 5, 2019
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.

None yet

2 participants