JDK-7187876 : ClassCastException in TCPTransport.executeAcceptLoop
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 8-pool
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-07-30
  • Updated: 2013-09-09
  • Resolved: 2012-08-10
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
7u40Fixed 8 b52Fixed
Description
In TCPTransport.executeAcceptLoop, in the catch block, if Throwable is not an instanceof Error, it's possible for a ClassCastException to occur as the test may try to cast the Throwable to an Error.  The java/rmi/transport/acceptLoop/CloseServerSocketOnTermination.java test exposes this issue

Comments
EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/jdk/rev/8a82e5f9c47f
14-08-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/jdk/rev/8a82e5f9c47f
11-08-2012

EVALUATION In TCPTransport.executeAcceptLoop, in the catch block, if Throwable is not an instanceof Error, it's possible for a ClassCastException to occur as the test may try to cast the Throwable to an Error. The java/rmi/transport/acceptLoop/CloseServerSocketOnTermination.java test exposes this issue.
10-08-2012