@@ -1581,19 +1581,19 @@ void java_bytecode_parsert::relement_value_pair(
1581
1581
// / Corresponds to the element_value structure
1582
1582
// / Described in Java 8 specification 4.7.6
1583
1583
// / https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.6
1584
- // / Parses the bytes of the InnerClasses attribute for the current parsed class,
1585
- // / which contains any array of information about inner classes. We are
1584
+ // / Parses the InnerClasses attribute for the current parsed class,
1585
+ // / which contains an array of information about its inner classes. We are
1586
1586
// / interested in getting information only for inner classes, which is
1587
1587
// / determined by checking if the parsed class matches any of the inner classes
1588
1588
// / in its inner class array. If the parsed class is not an inner class, then it
1589
1589
// / is ignored. When a parsed class is an inner class, the accessibility
1590
1590
// / information for the parsed class is overwritten, and the parsed class is
1591
- // / marked as an inner class. Note that is outer_class_info_index == 0, the
1592
- // / inner class is an anonymous or local class, and is treated as private.
1591
+ // / marked as an inner class.
1593
1592
void java_bytecode_parsert::rinner_classes_attribute (
1594
1593
classt &parsed_class,
1595
1594
const u4 &attribute_length)
1596
1595
{
1596
+ std::string name = parsed_class.name .c_str ();
1597
1597
u2 number_of_classes = read_u2 ();
1598
1598
u4 number_of_bytes_to_be_read = number_of_classes * 8 + 2 ;
1599
1599
INVARIANT (
@@ -1634,6 +1634,8 @@ void java_bytecode_parsert::rinner_classes_attribute(
1634
1634
remove_separator_char (inner_class_info_name, ' /' );
1635
1635
if (!parsed_class.is_inner_class )
1636
1636
continue ;
1637
+ // Note that if outer_class_info_index == 0, the inner class is an anonymous
1638
+ // or local class, and is treated as private.
1637
1639
if (outer_class_info_index == 0 )
1638
1640
{
1639
1641
// This is a marker for an anonymous or local class
0 commit comments