Integrated: 8211004: javac is complaining about non-denotable types and refusing to generate the class file

Vicente Romero vromero at openjdk.java.net
Thu Jan 6 06:02:13 UTC 2022


On Fri, 17 Dec 2021 21:35:24 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> Please review this fix which is checking if the enclosing class of an anonymous class is denotable or not. Currently javac is failing with an error at class writing time. All this fix is doing is failing during attribution and trying to issue a better error message so that the user knows better how to fix the issue and the position of the offending code,
> 
> TIA

This pull request has now been integrated.

Changeset: 456bd1ed
Author:    Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/456bd1ed1cbfedc225194e9afb917b913e5bc9d5
Stats:     21 lines in 8 files changed: 15 ins; 1 del; 5 mod

8211004: javac is complaining about non-denotable types and refusing to generate the class file

Reviewed-by: jlahoda

-------------

PR: https://git.openjdk.java.net/jdk/pull/6886


More information about the compiler-dev mailing list