Skip to content

Commit 1b15e89

Browse files
author
Owen Jones
committed
Print debug message for ignored methods
1 parent 7cf35b1 commit 1b15e89

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_class.cpp

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,16 @@ void java_bytecode_convert_classt::convert(
501501
{
502502
for(const methodt &method : overlay_class.get().methods)
503503
{
504-
if(is_ignored_method(method))
505-
continue;
506504
const irep_idt method_identifier =
507505
qualified_classname + "." + id2string(method.name)
508506
+ ":" + method.descriptor;
507+
if(is_ignored_method(method))
508+
{
509+
debug()
510+
<< "Ignoring method: '" << method_identifier << "'"
511+
<< eom;
512+
continue;
513+
}
509514
if(method_bytecode.contains_method(method_identifier))
510515
{
511516
// This method has already been discovered and added to method_bytecode
@@ -544,11 +549,16 @@ void java_bytecode_convert_classt::convert(
544549
}
545550
for(const methodt &method : c.methods)
546551
{
547-
if(is_ignored_method(method))
548-
continue;
549552
const irep_idt method_identifier=
550553
qualified_classname + "." + id2string(method.name)
551554
+ ":" + method.descriptor;
555+
if(is_ignored_method(method))
556+
{
557+
debug()
558+
<< "Ignoring method: '" << method_identifier << "'"
559+
<< eom;
560+
continue;
561+
}
552562
if(method_bytecode.contains_method(method_identifier))
553563
{
554564
// This method has already been discovered while parsing an overlay

0 commit comments

Comments
 (0)