RFR: 8264258: Unknown lookups in the java package give misleading compilation errors

Srikanth Adayapalam sadayapalam at openjdk.java.net
Tue Apr 20 10:35:05 UTC 2021


On Sun, 11 Apr 2021 12:49:35 GMT, Jesper Steen Møller <jespersm at openjdk.org> wrote:

> Unknown lookups in the java package give misleading compilation errors

In thinking about it more, I think we can settle for the changes in com.sun.tools.javac.comp.Resolve.SymbolNotFoundError#getDiagnostic as is - it being in error recovery that affords us a bit of leeway. An aesthetically cleaner approach would have been preferable, but sometime handling the special case directly is clean enough. I also suspect this is corner case territory and we may not care that much.

So, Jesper could you make the other changes suggested and restest.

Please indicate what tests you ran. TIA.

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

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


More information about the compiler-dev mailing list