JDK-8024952 : ClassCastException in PlainSocketImpl.accept() when using custom socketImpl
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7u25
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2013-09-17
  • Updated: 2014-02-12
  • Resolved: 2013-10-02
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
7u60Fixed 8 b112Fixed
Description
SHORT SUMMARY: ClassCastException in PlainSocketImpl.accept() when using custom socketImpl

INDICATORS: ClassCastException seen on windows if a custom socketImpl is implemented.

COUNTER INDICATORS:
TRIGGERS:
KNOWN WORKAROUND: N/A
PRESENT SINCE: JDK 7 GA
HOW TO VERIFY: New auto unit testcase is possible for this issue.
.
NOTES FOR SE:
REGRESSION:
Comments
Should only cast if the given SocketImpl is an instanceof PlainSocketImpl, otherwise simply delegate. Currently under review on net-dev: http://mail.openjdk.java.net/pipermail/net-dev/2013-September/007325.html
27-09-2013