RFR: 8298065: Provide more information in message of NoSuchFieldError [v4]
Ioi Lam
iklam at openjdk.org
Thu Dec 22 21:43:49 UTC 2022
On Thu, 22 Dec 2022 16:04:00 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
>> src/hotspot/share/interpreter/linkResolver.cpp line 977:
>>
>>> 975: THROW_MSG(vmSymbols::java_lang_NoSuchFieldError(),
>>> 976: err_msg("No resolved class, field '%s %s'",
>>> 977: type2name(Signature::basic_type(sig->char_at(0))),
>>
>> Isn't this going to report "object" for all non-primitive types?
>
> You're absolutely right, this would output "object" for all references and "array" for all array types. Ideally this should be more detailed about these types.
There's no test case for this condition.
-------------
PR: https://git.openjdk.org/jdk/pull/11745
More information about the hotspot-runtime-dev
mailing list