RFR: 8242882: opening jar file with large manifest might throw NegativeArraySizeException [v3]

Jaikiran Pai jpai at openjdk.java.net
Thu Oct 1 14:42:21 UTC 2020


On Wed, 30 Sep 2020 18:38:40 GMT, Lance Andersen <lancea at openjdk.org> wrote:

>> I think it's fine either way.
>
> If you are going to validate the message, which I probably would not,  it would be important to make sure it document
> if the message is changed in JarFile::getBytes, that the test needs updated.  Otherwise it will be easy to miss.

Hello Lance,
I decided to remove the assertion on the exception message. I have updated the PR accordingly.

-------------

PR: https://git.openjdk.java.net/jdk/pull/323


More information about the core-libs-dev mailing list