[lworld] [Rev 01] RFR: 8237072: [lworld] Add support for denoting and deriving the reference projection
Srikanth Adayapalam
sadayapalam at openjdk.java.net
Fri May 1 12:00:07 UTC 2020
On Fri, 1 May 2020 11:21:34 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Actually, this code is trying to remove V$ref.class from its owner (the package symbol). The class finder would have
>> from the class path found V.class and V$ref.class and added them to the known classes. When V.class is completed and we
>> find that it is a value class, V.class has a "wrong" super type from javac pov. It needs to read V$ref.class and pick
>> up the "real" super type from there. In that process it needs to remove V$ref.class from the package owner as it not a
>> top level class at all (very similar to what happens for nested classes)
>
> Actually I meant to comment on ClassWriter and clicked on the wrong thing!
Actually we don't prune anything, We simply don't write the methods. But carry along the symbols as we must because
there could be other files that are in the pipeline, (from same TU or otherwise)
-------------
PR: https://git.openjdk.java.net/valhalla/pull/32
More information about the valhalla-dev
mailing list