Re: java.util.Date.parse(String) doesn't declare thrown IllegalArgumentException

2023-02-06 Thread Roger Riggs
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

java.util.Date.parse(String) doesn't declare thrown IllegalArgumentException

2023-02-06 Thread Andrey Turbanov
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