JDK-8337956 : Release Note: IllegalArgumentException in java.lang.reflect.Field.get
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Withdrawn
  • Submitted: 2024-08-06
  • Updated: 2024-08-12
  • Resolved: 2024-08-12
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
23Resolved
Description
Using the reflected field of java.lang.Class componentType on a non-class argument will get IllegalArgumentException because of the way Hotspot uses it internally.  This private field is an internal implementation detail and only valid for array classes.
Comments
This doesn't warrant a release note for this severity of problem.
07-08-2024

> [~coleenp] shouldn't this be a RN on JDK-8333542? I don't think so. I think we want to Release Note the problem that's in the code, which is described by this issue.
07-08-2024

> This field is only valid for array classes. Suggestion to make it clear people should not be looking at this field: > This private field is an internal implementation detail and only valid for array classes.
07-08-2024