JDK-8285690 : CloneableReference subtest should not throw CloneNotSupportedException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-04-27
  • Updated: 2022-12-16
  • Resolved: 2022-04-28
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 11 JDK 17 JDK 19
11.0.19-oracleFixed 17.0.7-oracleFixed 19 b21Fixed
Related Reports
Relates :  
Description
The test java/lang/ref/ReferenceClone.java has a subtest that calls clone() on the test class CloneableReference.  That call should not throw CloneNotSupportedException, and indeed should fail if it does throw that exception.  But that clone call is within a try/catch that ignores that exception.  The fix is to have the test fail if that exception is thrown.

Comments
Changeset: 2d8d1402 Author: Kim Barrett <kbarrett@openjdk.org> Date: 2022-04-28 15:15:17 +0000 URL: https://git.openjdk.java.net/jdk/commit/2d8d1402147f6ddd15732ce7098a8438317a2681
28-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8418 Date: 2022-04-27 09:24:24 +0000
27-04-2022