RFR: 8121: JMC should fail properly when executed with <17 JDK

Alex Macdonald aptmac at openjdk.org
Thu Sep 28 14:55:33 UTC 2023


On Thu, 28 Sep 2023 12:06:32 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:

> Set `osgi.requireJavaVersion` property for in `jmc.product`, so that JMC fails directly with an understandable error message when it started on a <17 JDK.
> 
> The new error message looks like the follows when running JMC on JDK 1.8:
> 
> <img width="297" alt="MicrosoftTeams-image" src="https://github.com/openjdk/jmc/assets/490655/141132a7-fcde-486b-bbe0-d78633f5a659">
> 
> I tested it with various supported and unsupported JDK versions and it worked as expected.

Marked as reviewed by aptmac (Reviewer).

-------------

PR Review: https://git.openjdk.org/jmc/pull/516#pullrequestreview-1649075415


More information about the jmc-dev mailing list