JDK-8175386 : Clarify exception behavior of Types utility methods
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.lang.model
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-02-22
  • Updated: 2024-10-17
  • Resolved: 2024-01-26
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 23
23 b08Fixed
Related Reports
Relates :  
Relates :  
Description
In response to review feedback on JDK-8175335, a general comment was made that

"The methods in Types that throw IAE could be clarified. Where they now say "if given a type for an executable, package, or module", they really mean "if given a mirror that does not represent a suitable type for the operation". The Types spec could say "Utility methods for operating on types. Most methods operate on primitive types, reference types (including array types and the null type), intersection types, and the pseudo-type 'void'. Executable types and the pseudo-types for packages and modules are generally out of scope for these methods."

http://mail.openjdk.java.net/pipermail/compiler-dev/2017-February/010819.html

This clarification can be considered with larger review of the Types portion of the API (JDK-8055219).
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/17523 Date: 2024-01-22 21:51:57 +0000
17-10-2024

Changeset: 2e748c99 Author: Joe Darcy <darcy@openjdk.org> Date: 2024-01-26 22:33:17 +0000 URL: https://git.openjdk.org/jdk/commit/2e748c998ee490d8c3b1c7ab2fadfcb4596fc07b
26-01-2024