java.util.Date.parse(String) doesn't declare thrown IllegalArgumentException
Andrey Turbanov
turbanoff at gmail.com
Mon Feb 6 16:41:53 UTC 2023
Hello.
I've noticed that method 'long java.util.Date.parse(String)' doesn't
have a reference to IllegalArgumentException in its javadoc.
https://docs.oracle.com/javase/7/docs/api/java/util/Date.html#parse(java.lang.String)
But this exception is thrown in implementation.
I know that this method is deprecated, but it still is used within JDK
code itself.
Is it intentional that exception is not documented in this method?
Andrey Turbanov
More information about the core-libs-dev
mailing list