RFR: 8345911: Enhance error message when IncompatibleClassChangeError is thrown for sealed class loading failures [v4]

Coleen Phillimore coleenp at openjdk.org
Tue Dec 17 12:49:39 UTC 2024


On Tue, 17 Dec 2024 03:58:08 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> src/hotspot/share/classfile/moduleEntry.hpp line 191:
>> 
>>> 189:   const char* name_as_C_string() {
>>> 190:     return is_named() ? name()->as_C_string() : UNNAMED_MODULE;
>>> 191:   }
>> 
>> Maybe PackageEntry::name_as_C_string() should get the same helper function.
>
> Can't do that. The un-named package means you have no PackageEntry and package() returns null.

Ok.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22703#discussion_r1888462011


More information about the hotspot-dev mailing list