Skip to content

Commit 94b95a1

Browse files
author
Daniel Kroening
committed
pretty name of constructors now uses empty declarator
1 parent e0a1bf5 commit 94b95a1

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
@@ -381,11 +381,12 @@ void java_bytecode_convert_method_lazy(
381381

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

0 commit comments

Comments
 (0)