JDK-8275319 : java.net.NetworkInterface throws java.lang.Error instead of SocketException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows
  • Submitted: 2021-10-15
  • Updated: 2021-10-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
As noted in this PR https://github.com/openjdk/jdk/pull/5956, certain methods in NetworkInterface throw java.lang.Error (on Windows) instead of SocketException.
Comments
It would be useful to know if this is a drive-by change or whether there has been configurations/scenarios where Error is thrown. If we get "bad parameter" or other errors from the Win32 functions that suggest a JDK bug then Error or InternalError may be appropriate. So I think this one will need a detailed review.
15-10-2021