RFR: 8262277: java.net.URLClassLoader.getResource throws undocumented IllegalArgumentException
Brent Christian
bchristi at openjdk.java.net
Wed Mar 3 18:20:42 UTC 2021
On Wed, 3 Mar 2021 18:10:25 GMT, Brent Christian <bchristi at openjdk.org> wrote:
>> This seems to be a long standing bug, maybe goes all the way back to JDK 1.2. Are you planning to add a regression test?
>
> Hi, Craig
> The commented-out lines should be removed from the change.
>
> As Alan said, a regression test will be needed. At minimum, it should test a method that returns a URL, as well as a method that returns an Enumeration<URL> (which can also lead to an IAE, as I noted in the bug report).
>
> Also, though the compatibility risk is low, it would be good to include a CSR for this change to long-standing behavior.
Also, the copyright year should be updated: 2019 -> 2021
-------------
PR: https://git.openjdk.java.net/jdk/pull/2662
More information about the core-libs-dev
mailing list