-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 20.0.1
-
Component/s: core-libs
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
A java.lang.NoSuchFieldException is thrown when you are reflectively trying to get a field. The message currently only contains the field's name.
Similar toJDK-8298065 I propose that the Methods java.lang.Class#getField and java.lang.Class#getDeclaredField are updated in a way so the NoSuchFieldException's message includes the Class name.
A java.lang.NoSuchFieldException is thrown when you are reflectively trying to get a field. The message currently only contains the field's name.
Similar to
- relates to
-
JDK-8298065 Provide more information in message of NoSuchFieldError
-
- Resolved
-
- links to
-
Review
openjdk/jdk/14624