Skip to content

Commit 5524078

Browse files
Correct class_id of nondet strings
This could cause problems in particular in the use of instanceof.
1 parent efae909 commit 5524078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java_bytecode/java_object_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ codet initialize_nondet_string_struct(
554554

555555
// `obj` is `*expr`
556556
const struct_typet &struct_type = to_struct_type(ns.follow(obj.type()));
557-
const irep_idt &class_id = struct_type.get_tag();
557+
const irep_idt &class_id = "java::" + id2string(struct_type.get_tag());
558558

559559
// @clsid = String and @lock = false:
560560
const symbol_typet jlo_symbol("java::java.lang.Object");

0 commit comments

Comments
 (0)