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

Srikanth Adayapalam sadayapalam at openjdk.java.net
Tue Apr 20 07:11:12 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

This block of code in com.sun.tools.javac.code.ClassFinder#includeClassFile

if ((p.flags_field & EXISTS) == 0)
            for (Symbol q = p; q != null && q.kind == PCK; q = q.owner)
                q.flags_field |= EXISTS;

is updating one version of the PackageSymbol("java") as being existing while we land up with up another that hasn't been so updated.

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

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


More information about the compiler-dev mailing list