Skip to content

Commit 2a0927c

Browse files
authored
Merge pull request diffblue#1643 from NathanJPhillips/bugfix/string-solver-function-type-mistake
Fix type of call to forName
2 parents 229d1ee + 20eaf21 commit 2a0927c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java_bytecode/java_string_library_preprocess.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,8 @@ codet java_string_library_preprocesst::make_object_get_class_code(
15801580
fun_call.lhs()=class1;
15811581
fun_call.arguments().push_back(string1);
15821582
code_typet fun_type;
1583-
fun_type.return_type()=string1.type();
1583+
fun_type.parameters().push_back(code_typet::parametert(string_ptr_type));
1584+
fun_type.return_type()=class_type;
15841585
fun_call.function().type()=fun_type;
15851586
code.add(fun_call, loc);
15861587

0 commit comments

Comments
 (0)