RFR: 8250678: ModuleDescriptor.Version parsing treats empty segments inconsistently

Alan Bateman alanb at openjdk.java.net
Mon Nov 8 09:50:33 UTC 2021


On Fri, 5 Nov 2021 16:51:02 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> I would suggest to create a separate issue to follow up the spec clarification and keep this PR to fix the implementation.
> 
> The version parsing code is tricky. The fix is straight-forward, just moving the check of the delimiters as the first check when iterating the char sequence. I think it's fine for this fix to go in first. @AlanBateman what do you think?

I agree, let's separate the spec clarification to a separate issue and fix the consistency issue with this PR.

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

PR: https://git.openjdk.java.net/jdk/pull/5679


More information about the core-libs-dev mailing list