JDK-8291869 : Match exceptions using types of javax.lang.model, not strings
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-08-03
  • Updated: 2022-11-28
  • Resolved: 2022-11-16
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 20
20 b24Fixed
Related Reports
Blocks :  
Blocks :  
Description
When inheriting exception documentation, javadoc matches exceptions from an overridden method with those of the overriding method using string names, not even FQNs. This is misguided and leads to incorrect results. We should use appropriate types, not strings. (ThrowsTaglet is "stringly" typed.)
Comments
Changeset: 499406c7 Author: Pavel Rappo <prappo@openjdk.org> Date: 2022-11-16 09:43:21 +0000 URL: https://git.openjdk.org/jdk/commit/499406c764ba0ce57079b1f612297be5b148e5bb
16-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10746 Date: 2022-10-18 15:05:16 +0000
18-10-2022

I indicated that this issue blocks JDK-8291803. The blocking is "soft" in the sense that both issues need the same functionality. To build a set of exceptions documented by a method, Utils.isSimpleOverride (JDK-8291803) needs to translate exception names found in @throws tags to elements or type mirrors. Such translation is exactly what this issue is concerned with.
03-08-2022