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

fix: allow java16+ as JRE #171

Merged
merged 1 commit into from
Mar 23, 2022
Merged

fix: allow java16+ as JRE #171

merged 1 commit into from
Mar 23, 2022

Conversation

padamstx
Copy link
Member

@padamstx padamstx commented Mar 23, 2022

This commit includes a small change to the AbstractToken
class to avoid an InaccessibleObjectException when
running code using a Java 17 JRE.
In addition, the pom.xml was updated to make it easy
to build/test with a Java 17 JDK... just add "-P java17"
to the mvn command line.

Note: although we don't yet include a java17-based build in Travis, I've tested locally and with the changes in this PR, I'm able to build and test the project cleanly by running mvn clean install -P java17 while using the Oracle Java 17 JDK.
Unfortunately, I have to use the --add-opens JVM option when running unit tests due to InaccessibleObjectException's that
occur in some of our dependencies (mostly powermock, etc.).

@padamstx padamstx self-assigned this Mar 23, 2022
pom.xml Show resolved Hide resolved
pom.xml Show resolved Hide resolved
pom.xml Show resolved Hide resolved
Copy link
Member

@pyrooka pyrooka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@dpopp07 dpopp07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This commit includes a small change to the AbstractToken
class to avoid an InaccessibleObjectException when
running code using a Java 16 (or later) JRE.
@padamstx padamstx changed the title fix: allow java17 as JRE fix: allow java16+ as JRE Mar 23, 2022
@padamstx padamstx merged commit 95ea237 into main Mar 23, 2022
@padamstx padamstx deleted the support-java17 branch March 23, 2022 16:14
ibm-devx-sdk pushed a commit that referenced this pull request Mar 23, 2022
## [9.16.1](9.16.0...9.16.1) (2022-03-23)

### Bug Fixes

* allow java16+ as JRE ([#171](#171)) ([95ea237](95ea237))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 9.16.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@dominicfeliton
Copy link

Thank you! This fixed an error I reported from a few months ago.

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

Successfully merging this pull request may close these issues.

6 participants