File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1238,6 +1238,11 @@ void java_bytecode_parsert::rmethod_attribute(methodt &method)
1238
1238
for (std::size_t j=0 ; j<attributes_count; j++)
1239
1239
rcode_attribute (method);
1240
1240
1241
+ // method name
1242
+ method.source_location .set_function (
1243
+ " java::" + id2string (parse_tree.parsed_class .name ) + " ." +
1244
+ id2string (method.name ) + " :" + method.descriptor );
1245
+
1241
1246
irep_idt line_number;
1242
1247
1243
1248
// add missing line numbers
@@ -1250,10 +1255,7 @@ void java_bytecode_parsert::rmethod_attribute(methodt &method)
1250
1255
line_number=it->source_location .get_line ();
1251
1256
else if (!line_number.empty ())
1252
1257
it->source_location .set_line (line_number);
1253
- it->source_location
1254
- .set_function (
1255
- " java::" +id2string (parse_tree.parsed_class .name )+" ." +
1256
- id2string (method.name )+" :" +method.descriptor );
1258
+ it->source_location .set_function (method.source_location .get_function ());
1257
1259
}
1258
1260
1259
1261
// line number of method (the first line number available)
@@ -1265,11 +1267,6 @@ void java_bytecode_parsert::rmethod_attribute(methodt &method)
1265
1267
});
1266
1268
if (it != method.instructions .end ())
1267
1269
method.source_location .set_line (it->source_location .get_line ());
1268
-
1269
- // method name
1270
- method.source_location .set_function (
1271
- " java::" + id2string (parse_tree.parsed_class .name ) + " ." +
1272
- id2string (method.name ) + " :" + method.descriptor );
1273
1270
}
1274
1271
else if (attribute_name==" Signature" )
1275
1272
{
You can’t perform that action at this time.
0 commit comments