JDK-8046588 : test for SO_FLOW_SLA availability does not check for EACCESS
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8u20
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_11
  • Submitted: 2014-06-11
  • Updated: 2016-05-27
  • Resolved: 2014-06-13
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.
JDK 7 JDK 8 JDK 9
7u80Fixed 8u20Fixed 9 b20Fixed
Description
When we test for the avilability of the SO_FLOW_SLA feature in Solaris we set the option on a socket and check for ENOPROTOOPT. Success, or any other error means the feature is available.

However, EACCESS can also occur if the current process doesn't have the privilege. So, we should test for that as well.