Skip to content

Commit

Permalink
Fix #71
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatu Saloranta committed Dec 20, 2019
1 parent 3e28293 commit 76cbb67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,14 @@ protected <R> R _throwNoSuchElement() {
}

protected <R> R _handleMappingException(JSONObjectException e) {
throw new UncheckedIOException(e.getMessage(), e);
// Only with JDK8:
// throw new UncheckedIOException(e.getMessage(), e);
throw new RuntimeException(e.getMessage(), e);
}

protected <R> R _handleIOException(IOException e) {
throw new UncheckedIOException(e.getMessage(), e);
// Only with JDK8:
// throw new UncheckedIOException(e.getMessage(), e);
throw new RuntimeException(e.getMessage(), e);
}
}
4 changes: 4 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Project: jackson-jr
=== Releases ===
------------------------------------------------------------------------

2.10.2 (not yet released)

#71: Jackson-jr 2.10 accidentally uses `UncheckedIOException` only available on JDK 8

2.10.1 (09-Nov-2019)

No changes since 2.10.0
Expand Down

0 comments on commit 76cbb67

Please sign in to comment.