RFR: 8282395: URL.openConnection can throw IOOBE [v3]

KIRIYAMA Takuya duke at openjdk.org
Fri Sep 30 09:11:31 UTC 2022


On Thu, 29 Sep 2022 10:26:14 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> You can use `Throwable::initCause`
>
> var mfue = new MalformedURLException(e.getMessage());
> mfue.initCause(e);
> throw mfue;

Thank you for your advice, I could fix it.

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

PR: https://git.openjdk.org/jdk/pull/8155


More information about the net-dev mailing list