Skip to content

Release v2.0.4 - Harden Java Discovery Logic

Compare
Choose a tag to compare
@dscalzi dscalzi released this 13 Apr 01:48
· 24 commits to master since this release
c711123

Release v2.0.4

This update fixes a few issues with the Java discovery to make it more fault tolerant. Namely fixes the following:

  1. Only check against the standard java.version property to avoid obscure formats by different vendors. This also means that the build number is no longer collected.
  2. If a JVM version format is not valid, warn and skip. Do not throw an error.
  3. Add error handling around -XshowSettings invocation. This is to prevent derailing the Java discovery process in the event a nonexistent path is passed or an unrelated error occurs during command invocation.

Fixes

  • c711123 Harden JVM discovery logic.