Skip to content

Commit 63feb6e

Browse files
Fixes parsing for anonymous classes
1 parent 663b406 commit 63feb6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_parser.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,13 @@ void java_bytecode_parsert::rinner_classes_attribute(
16151615
UNUSED u2 inner_name_index = read_u2();
16161616
u2 inner_class_access_flags = read_u2();
16171617

1618+
if(inner_name_index == 0) {
1619+
// it is anonymous
1620+
parsed_class.is_private = true;
1621+
parsed_class.is_protected = false;
1622+
parsed_class.is_public = false;
1623+
}
1624+
16181625
if(inner_class_info_index == 0)
16191626
continue;
16201627

0 commit comments

Comments
 (0)