RFR: 8250678: ModuleDescriptor.Version parsing treats empty segments inconsistently
Alan Bateman
alanb at openjdk.java.net
Wed Nov 3 20:04:09 UTC 2021
On Tue, 2 Nov 2021 20:09:21 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> I reviewed the change. It is reasonable to fix the parsing of the pre-release version and the build version be consistent with parsing of the version number which currently skips consecutive delimiters.
>
> The spec is unclear on whether an empty token separated by the delimiters is ignored. The spec may needs some clarification.
Yes, I think we should fix the consistency issues although the cases where the inconsistency show up seem unusual.
In two minds on whether to should do the spec clarification as part of this PR or create a separate issue.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5679
More information about the core-libs-dev
mailing list