RFR: 8264696: Multi-catch clause causes compiler exception because it uses the package-private supertype
Vicente Romero
vromero at openjdk.java.net
Thu Apr 8 02:24:44 UTC 2021
On Wed, 7 Apr 2021 12:26:34 GMT, Guoxiong Li <github.com+13688759+lgxbslgx at openjdk.org> wrote:
> Hi all,
>
> The method `isAccessible(Env<AttrContext> env, Type t, boolean checkInner)` should take `UnionClassType` as a special type to do some corresponding work. If not, the problem will occur. This patch fixes it and adds a test case.
>
> Thank you for taking the time to review.
>
> Best Regards.
> -- Guoxiong
test/langtools/tools/javac/resolve/PackagePrivateSupertypeAtMultiCatch.java line 105:
> 103: .outdir(out)
> 104: .run()
> 105: .writeAll();
nit: you don't need the `writeAll()` method given that you are not collecting the output
-------------
PR: https://git.openjdk.java.net/jdk/pull/3374
More information about the compiler-dev
mailing list