Skip to content

Commit cef34e0

Browse files
committed
Use is_valid_java_array function
1 parent 5e301b4 commit cef34e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jbmc/src/java_bytecode/java_object_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ void java_object_factoryt::gen_pointer_target_init(
400400
if(target_type.id() == ID_struct)
401401
{
402402
const auto &target_class_type = to_java_class_type(target_type);
403-
if(has_prefix(id2string(target_class_type.get_tag()), "java::array["))
403+
if(is_valid_java_array(target_class_type))
404404
{
405405
gen_nondet_array_init(
406406
assignments, expr, depth + 1, update_in_place, location);

0 commit comments

Comments
 (0)