JDK-8165199: UUID.fromString(str) compliance checking?
andrew_m_leonard at uk.ibm.com
Fri Dec 14 16:24:14 UTC 2018
So i'm just taking a look at what appears quite a simple bug :
https://bugs.openjdk.java.net/browse/JDK-8165199 , at least the fix is
simple to make UUID.fromString(str) strictly uuid bnf compliant. However,
I wanted to get community opinion on potential "compliance" issues with
doing such a fix?
As it currently stands the method will allow any string up to 36
characters containing 4 "-"'s, eg: this would be valid
whereas a properly formatted UUID string should be hex values of lengths
There are obvious implications in increasing the validation that it could
break some existing applications that were either knowing or un-knowingly
specifying the strings in a non-spec way...
am I just being paranoid..!? Thoughts?
Java Runtimes Development
IBM United Kingdom Ltd
Phone internal: 245913, external: 01962 815913
internet email: andrew_m_leonard at uk.ibm.com
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
More information about the core-libs-dev