Skip to content

Commit 20eaf21

Browse files
NathanJPhillipsNathan Phillips
authored and
Nathan Phillips
committed
Fix type of call to forName
1 parent 7f3ba30 commit 20eaf21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,8 @@ codet java_string_library_preprocesst::make_object_get_class_code(
15771577
fun_call.lhs()=class1;
15781578
fun_call.arguments().push_back(string1);
15791579
code_typet fun_type;
1580-
fun_type.return_type()=string1.type();
1580+
fun_type.parameters().push_back(code_typet::parametert(string_ptr_type));
1581+
fun_type.return_type()=class_type;
15811582
fun_call.function().type()=fun_type;
15821583
code.add(fun_call, loc);
15831584

0 commit comments

Comments
 (0)