Skip to content

Commit c630ebe

Browse files
committed
fix(attribute_parser): dont panic at Attribute Exeptions anymore
1 parent d0fccee commit c630ebe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/classloader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub enum AttributeInfo {
7373
SourceFile,
7474
LineNumberTable,
7575
LocalVariableTable,
76+
Exceptions,
7677
}
7778

7879
impl AttributeInfo {

src/classloader/attribute_parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ fn parse_attribute(
9797
"SourceFile" => AttributeInfo::SourceFile,
9898
"LineNumberTable" => AttributeInfo::LineNumberTable,
9999
"LocalVariableTable" => AttributeInfo::LocalVariableTable,
100+
"Exceptions" => AttributeInfo::Exceptions,
100101
_ => panic!("Unknown Attribute {}", name),
101102
}
102103
}

0 commit comments

Comments
 (0)