RFR: 8334488: Improve error for illegal early access from nested class

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Jun 19 10:48:16 UTC 2024


On Wed, 19 Jun 2024 01:42:24 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> > I think that, as we're here, we should probably try to improve the situation a little, at least for the next release.
> 
> I agree the error messages are pretty ambiguous. At the time they were first added folks probably weren't imagining multiple levels nested of classes, etc.

As part of the work I'm doing to improve the checks in this area, I'm also seeing if some of the error message generation can be improved a bit.

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

PR Comment: https://git.openjdk.org/jdk/pull/19773#issuecomment-2178358887


More information about the compiler-dev mailing list