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.).
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.).