Skip to content

Commit 5206cb6

Browse files
author
svorenova
committed
Improving warnings for unsupported signatures for generics cont.
1 parent c1fb300 commit 5206cb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/java_bytecode/java_bytecode_convert_class.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void java_bytecode_convert_classt::convert(const classt &c)
202202
}
203203
class_type=generic_class_type;
204204
}
205-
catch(unsupported_java_class_signature_exceptiont &e)
205+
catch(const unsupported_java_class_signature_exceptiont &e)
206206
{
207207
warning() << "Class: " << c.name
208208
<< "\n could not parse signature: " << c.signature.value()
@@ -255,7 +255,7 @@ void java_bytecode_convert_classt::convert(const classt &c)
255255
base, superclass_ref.value(), qualified_classname);
256256
class_type.add_base(generic_base);
257257
}
258-
catch(unsupported_java_class_signature_exceptiont &e)
258+
catch(const unsupported_java_class_signature_exceptiont &e)
259259
{
260260
warning() << "Superclass: " << c.extends << " of class: " << c.name
261261
<< "\n could not parse signature: " << superclass_ref.value()
@@ -295,7 +295,7 @@ void java_bytecode_convert_classt::convert(const classt &c)
295295
base, interface_ref.value(), qualified_classname);
296296
class_type.add_base(generic_base);
297297
}
298-
catch(unsupported_java_class_signature_exceptiont &e)
298+
catch(const unsupported_java_class_signature_exceptiont &e)
299299
{
300300
warning() << "Interface: " << interface << " of class: " << c.name
301301
<< "\n could not parse signature: " << interface_ref.value()

src/java_bytecode/java_bytecode_convert_method.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ code_typet member_type_lazy(
292292
"descriptor" << message.eom;
293293
}
294294
}
295-
catch(unsupported_java_class_signature_exceptiont &e)
295+
catch(const unsupported_java_class_signature_exceptiont &e)
296296
{
297297
message.warning() << "Method: " << class_name << "." << method_name
298298
<< "\n could not parse signature: " << signature.value() << "\n "

0 commit comments

Comments
 (0)