Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit f5d7c77

Browse files
committed
8276826: Clarify the ModuleDescriptor.Version specification’s treatment of repeated punctuation characters
Reviewed-by: mchung, darcy
1 parent be6b90d commit f5d7c77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java.base/share/classes/java/lang/module/ModuleDescriptor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,8 @@ public String toString() {
893893
* integer or a string. Tokens are separated by the punctuation characters
894894
* {@code '.'}, {@code '-'}, or {@code '+'}, or by transitions from a
895895
* sequence of digits to a sequence of characters that are neither digits
896-
* nor punctuation characters, or vice versa.
896+
* nor punctuation characters, or vice versa. Consecutive repeated
897+
* punctuation characters are treated as a single punctuation character.
897898
*
898899
* <ul>
899900
*

0 commit comments

Comments
 (0)