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: 2025-08-12
  • 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 JDK 8
11.0.19-oracleFixed 17.0.7-oracleFixed 19 b21Fixed 8u481Fixed
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
Fix request [11u,17u] I backport this for parity with 11.0.19-oracle,17.0.7-oracle. No risk, only a test change. Clean backport. Test passes. SAP nightly testing passed.
25-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1680 Date: 2023-01-23 17:01:10 +0000
23-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1099 Date: 2023-01-23 16:54:43 +0000
23-01-2023

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