java.net.BindException doesn't include host info even when jdk.includeInExceptions is set to hostInfo

Jaikiran Pai jai.forums2013 at gmail.com
Thu Jun 11 14:17:19 UTC 2020


On 11/06/20 7:40 pm, Alan Bateman wrote:
> On 11/06/2020 14:59, Jaikiran Pai wrote:
>> :
>> Is this a valid use case to have this part of the JDK code enhanced to
>> include the additional host/port information (of course when that
>> security property is enabled)?
>>
> Yes but there there are always security concerns with including too
> much information in exceptions so this is why we would not be included
> by default.
>
Agreed and I understand the reasoning behind not including any of these
details by default.

I'll open a JBS enhancement in a short while to have this part enhanced
to report the additional details only when the specific security
property is enabled.

-Jaikiran



More information about the net-dev mailing list