The GitHub Actions job "CI" on 
grails-core.git/fix/14058-plugin-compatibility-milestone-snapshot has succeeded.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
cd75a0fec7bba7c325719e96f22ccb55106d9b58 / James Fredley 
<[email protected]>
fix: Restore InvalidVersionException for malformed versions in VersionComparator

The qualifier-aware rewrite of VersionComparator replaced the guarded integer
parsing with unguarded Integer.parseInt calls, so malformed or overflowing
version numbers leaked a raw NumberFormatException instead of the explicit
InvalidVersionException that the plugin loading code relies on.

Wrap the per-side parse calls in compare to rethrow NumberFormatException as
InvalidVersionException with the original left/right context message, and parse
the milestone/release-candidate qualifier number eagerly inside parse so a
qualifier-number overflow is reported the same way. Unrecognised qualifiers are
still treated as a final release and never trigger qualifier-number parsing.

Add regression tests covering numeric-component and qualifier-number overflow on
both the left and right sides.

Assisted-by: claude-code:claude-4.8-opus

Report URL: https://github.com/apache/grails-core/actions/runs/26910848452

With regards,
GitHub Actions via GitBox

Reply via email to