java.util.Date.parse(String) doesn't declare thrown IllegalArgumentException
Roger Riggs
roger.riggs at oracle.com
Mon Feb 6 16:55:25 UTC 2023
Hi Andrey,
Instead, perhaps replace (carefully) the remaining uses in the JDK.
Developers should be using the correct APIs and not reading deprecated
javadoc.
Regards, Roger
On 2/6/23 11:41 AM, Andrey Turbanov wrote:
> 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