Skip to content

Commit

Permalink
Fix junit test: OpenJDK 17 on Ubuntu throws a different exception
Browse files Browse the repository at this point in the history
  • Loading branch information
cube authored and 3breadt committed Jan 29, 2024
1 parent d5a398c commit d5b3987
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/com/dd/plist/test/IssueTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ public void testIssue51_BillionLaughsAttack() {
catch (UnsupportedOperationException ex) {
// Expected exception for newer runtimes, then the parser will complain about the invalid DOCTYPE
}
catch (PropertyListFormatException ex) {
// Expected exception for OpenJDK 17
}
catch (Exception ex) {
fail("Unexpected exception of type " + ex.getClass().getName() + " was thrown, with the message: " + ex.getMessage());
}
Expand Down

0 comments on commit d5b3987

Please sign in to comment.