United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8024952 : ClassCastException in PlainSocketImpl.accept() when using custom socketImpl

Details
Type:
Bug
Submit Date:
2013-09-17
Status:
Closed
Updated Date:
2013-11-20
Project Name:
JDK
Resolved Date:
2013-10-02
Component:
core-libs
OS:
windows
Sub-Component:
java.net
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7u25
Fixed Versions:

Related Reports
Backport:

Sub Tasks

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
                                     
2013-09-27
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/368172cb6dc5
User:  coffeys
Date:  2013-10-02 08:23:05 +0000

                                     
2013-10-02
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/368172cb6dc5
User:  lana
Date:  2013-10-11 18:24:46 +0000

                                     
2013-10-11



Hardware and Software, Engineered to Work Together