Skip to content

Commit b59c659

Browse files
thk123svorenova
thk123
authored and
svorenova
committed
When dealing with generic arrays we should treat them like ref arrays too
For some reason, A indicates a reference array
1 parent 1bd95c0 commit b59c659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java_bytecode/java_types.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ typet java_type_from_string(
261261
const typet subtype=
262262
java_type_from_string(src.substr(1, std::string::npos), class_name);
263263
if(subtype_letter=='L' || // [L denotes a reference array of some sort.
264-
subtype_letter=='[') // Array-of-arrays
264+
subtype_letter=='[' || // Array-of-arrays
265+
subtype_letter=='T') // Array of generic types
265266
subtype_letter='A';
266267
typet tmp=java_array_type(std::tolower(subtype_letter));
267268
tmp.subtype().set(ID_C_element_type, subtype);

0 commit comments

Comments
 (0)