Skip to content

Commit 1f85eb2

Browse files
Change class loading and parsing warnings to debug messages.
Often, there are so many of these warnings that they lose all meaning as warning, so they are now moved to debug.
1 parent be84cd1 commit 1f85eb2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_class.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ void java_bytecode_convert_classt::convert(
302302
}
303303
catch(const unsupported_java_class_signature_exceptiont &e)
304304
{
305-
warning() << "Class: " << c.name
305+
debug() << "Class: " << c.name
306306
<< "\n could not parse signature: " << c.signature.value()
307307
<< "\n " << e.what() << "\n ignoring that the class is generic"
308308
<< eom;
@@ -364,7 +364,7 @@ void java_bytecode_convert_classt::convert(
364364
}
365365
catch(const unsupported_java_class_signature_exceptiont &e)
366366
{
367-
warning() << "Superclass: " << c.super_class << " of class: " << c.name
367+
debug() << "Superclass: " << c.super_class << " of class: " << c.name
368368
<< "\n could not parse signature: " << superclass_ref.value()
369369
<< "\n " << e.what()
370370
<< "\n ignoring that the superclass is generic" << eom;
@@ -404,7 +404,7 @@ void java_bytecode_convert_classt::convert(
404404
}
405405
catch(const unsupported_java_class_signature_exceptiont &e)
406406
{
407-
warning() << "Interface: " << interface << " of class: " << c.name
407+
debug() << "Interface: " << interface << " of class: " << c.name
408408
<< "\n could not parse signature: " << interface_ref.value()
409409
<< "\n " << e.what()
410410
<< "\n ignoring that the interface is generic" << eom;

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ java_method_typet member_type_lazy(
275275
}
276276
else
277277
{
278-
message.warning() << "Method: " << class_name << "." << method_name
278+
message.debug() << "Method: " << class_name << "." << method_name
279279
<< "\n signature: " << signature.value()
280280
<< "\n descriptor: " << descriptor
281281
<< "\n different number of parameters, reverting to "
@@ -285,7 +285,7 @@ java_method_typet member_type_lazy(
285285
}
286286
catch(const unsupported_java_class_signature_exceptiont &e)
287287
{
288-
message.warning() << "Method: " << class_name << "." << method_name
288+
message.debug() << "Method: " << class_name << "." << method_name
289289
<< "\n could not parse signature: " << signature.value()
290290
<< "\n " << e.what() << "\n"
291291
<< " reverting to descriptor: " << descriptor

jbmc/src/java_bytecode/java_class_loader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ java_class_loadert::get_parse_tree(
164164
++parse_tree_it;
165165
break;
166166
}
167-
warning()
167+
debug()
168168
<< "Skipping class " << class_name
169169
<< " marked with OverlayClassImplementation but found before"
170170
" original definition"
@@ -180,7 +180,7 @@ java_class_loadert::get_parse_tree(
180180
// Remove non-initial classes that aren't overlays
181181
if(!is_overlay_class(parse_tree_it->parsed_class))
182182
{
183-
warning()
183+
debug()
184184
<< "Skipping duplicate definition of class " << class_name
185185
<< " not marked with OverlayClassImplementation" << eom;
186186
auto duplicate_non_overlay_it = parse_tree_it;
@@ -194,7 +194,7 @@ java_class_loadert::get_parse_tree(
194194
return parse_trees;
195195

196196
// Not found or failed to load
197-
warning() << "failed to load class " << class_name << eom;
197+
debug() << "failed to load class " << class_name << eom;
198198
parse_trees.emplace_back(class_name);
199199
return parse_trees;
200200
}

0 commit comments

Comments
 (0)