Skip to content

Commit 133f0f2

Browse files
Fix type of call to forName
1 parent 8e99272 commit 133f0f2

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
@@ -1517,7 +1517,8 @@ codet java_string_library_preprocesst::make_object_get_class_code(
15171517
fun_call.lhs()=class1;
15181518
fun_call.arguments().push_back(string1);
15191519
code_typet fun_type;
1520-
fun_type.return_type()=string1.type();
1520+
fun_type.parameters().push_back(code_typet::parametert(string_ptr_type));
1521+
fun_type.return_type()=class_type;
15211522
fun_call.function().type()=fun_type;
15221523
code.add(fun_call);
15231524

0 commit comments

Comments
 (0)