Update classgraph dependency to fix OpenJ9-specific issue #1423
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was running my Spring-Boot 2.6.2 application which uses Springdoc-OpenAPI version 1.6.3, with this relevant part of the dependency tree:
and I hit the following exception on application startup:
Trying to figure out the cause of this, I came across this: classgraph/classgraph#563
My application is running with the (latest) Java 8 OpenJ9 JRE (specifically https://github.com/ibmruntimes/semeru8-binaries/releases/download/jdk8u312-b07_openj9-0.29.0/ibm-semeru-open-jre_x64_linux_8u312b07_openj9-0.29.0.tar.gz)
In my project I tried overriding the version of the
classgraph
dependency (the ticket says version4.8.120
required, but I chose the latest, which is4.8.138
at the time of writing). This change means my application starts up just fine.I am raising this PR so that I can remove the override of the transitive dependency in my project - and hopefully so that other people don't get impacted by this problem!