On Thu, 5 Mar 2026 15:05:27 GMT, Alexey Semenyuk <[email protected]> wrote:

> For the "1.2.3+ea" string, the `DottedVersion.greedy()` function returns an 
> instance whose `getUnprocessedSuffix()` returns ".3+ea". The expected value 
> is "+ea".
> 
> Fixed the implementation and added missing test cases.
> 
> Additionally:
>  -  Added `trim()` and `pad()` methods.
>  - Replaced `DottedVersion.DigitsSupplier.throwException(`) with 
> `DottedVersion.DigitsSupplier.createException()` to increase coverage. 
> Somehow, `throw ds.createException()` is marked as covered, and 
> `ds.throwException()` is marked as uncovered. Probably because in the latter 
> case, the call never returns.

This pull request has now been integrated.

Changeset: c2f6bd87
Author:    Alexey Semenyuk <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/c2f6bd87c6d3520c03caf5be75d35eec91f100bb
Stats:     178 lines in 2 files changed: 156 ins; 6 del; 16 mod

8379334: jpackage: fix bug in DottedVersion.greedy() function

Reviewed-by: almatvee

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

PR: https://git.openjdk.org/jdk/pull/30080

Reply via email to