JDK-8289779 : Map::replaceAll javadoc has redundant @throws clauses
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 8,11,17,18,19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-07-05
  • Updated: 2022-07-27
  • Resolved: 2022-07-07
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 19 JDK 20
19 b31Fixed 20Fixed
Related Reports
Blocks :  
Duplicate :  
Description
The javadoc for Map::replaceAll has duplicate @throws clauses for ClassCastException and NullPointerException. This is mostly benign but it causes problems with a pending change to javadoc (JDK-6509045).

In the current javadoc output, the contents of both clauses are rendered. The duplicate clauses mostly say the same thing, though, so aside from some minor wording changes, I'd consider this to be an editorial change.
Comments
Changeset: a8eb7286 Author: Stuart Marks <smarks@openjdk.org> Date: 2022-07-07 16:54:15 +0000 URL: https://git.openjdk.org/jdk19/commit/a8eb728680529e81bea0584912dead394c35b040
07-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk19/pull/111 Date: 2022-07-06 00:32:00 +0000
06-07-2022