I'm trying to generate a UUID with all zeros:
java.util.UUID fromString "00000000-00000000-00000000-00000000"
The error is
java.lang.IllegalArgumentException: Invalid UUID string: 00000000-00000000-00000000-00000000
at java.util.UUID.fromString(UUID.java:194)
What am I doing wrong?
I want to create either "MinValue" or "Invalid" UUID.
IllegalArgumentException - If name does not conform to the string representation as described in toString()
So checktoString()
and see what is not correct. – Pericles