Skip to content

Commit ac3ac30

Browse files
author
Daniel Kroening
committed
pretty name of constructors now uses empty declarator
1 parent 0e1ff97 commit ac3ac30

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,12 @@ void java_bytecode_convert_method_lazy(
380380

381381
if(is_constructor(method_symbol.base_name))
382382
{
383-
// we use full.class_name.class_name(...) as pretty name
384-
// for constructors
383+
// we use full.class_name(...) as pretty name
384+
// for constructors -- the idea is that they have
385+
// an empty declarator.
385386
method_symbol.pretty_name=
386-
id2string(class_symbol.pretty_name)+"."+
387-
id2string(class_symbol.base_name)+signature_string;
387+
id2string(class_symbol.pretty_name)+
388+
signature_string;
388389
member_type.set_is_constructor();
389390
}
390391
else

0 commit comments

Comments
 (0)