RFR: 8285611: Retrofit (Doc)Pretty with java.io.UncheckedIOException
Jonathan Gibbons
jjg at openjdk.java.net
Mon Apr 25 22:45:18 UTC 2022
On Mon, 25 Apr 2022 21:01:58 GMT, Pavel Rappo <prappo at openjdk.org> wrote:
> Standard `java.io.UncheckedIOException` is more convenient than older ad-hoc `com.sun.tools.javac.tree.(Doc)Pretty.UncheckedIOException`.
1. To be clear, this is more than just substitution of an equivalent exception: there's a minor change in behavior with respect to the resulting exception that is thrown (i.e. the original.) People may wonder, how did the exception escape, but then again, anyone handling it ought to know.
2. Do you want to avoid filling in the stack trace, since the unchecked exception is transient? Maybe it's not important, since this code path is almost never taken.
-------------
Marked as reviewed by jjg (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/8387
More information about the compiler-dev
mailing list