mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8169559: Add class loader names to relevant VM messages
Added new method class_in_module_of_loader to provide a standard format for class information within error messages. Reviewed-by: goetz, hseigel, mchung
This commit is contained in:
parent
fc73803071
commit
7ca4027957
13 changed files with 379 additions and 75 deletions
|
@ -955,9 +955,10 @@ void ClassFileParser::parse_interfaces(const ClassFileStream* const stream,
|
|||
|
||||
if (!interf->is_interface()) {
|
||||
THROW_MSG(vmSymbols::java_lang_IncompatibleClassChangeError(),
|
||||
err_msg("Class %s can not implement %s, because it is not an interface",
|
||||
err_msg("class %s can not implement %s, because it is not an interface (%s)",
|
||||
_class_name->as_klass_external_name(),
|
||||
interf->class_loader_and_module_name()));
|
||||
interf->external_name(),
|
||||
interf->class_in_module_of_loader()));
|
||||
}
|
||||
|
||||
if (InstanceKlass::cast(interf)->has_nonstatic_concrete_methods()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue