Equivalent .class fields should share the same symbol

B. Blaser bsrbnd at gmail.com
Mon Apr 16 17:31:01 UTC 2018


Hi Jan,

On 16 April 2018 at 17:02, Jan Lahoda <jan.lahoda at oracle.com> wrote:
> Hi Bernard,
>
> There are two things I wonder about:
> -can the key to the map be TypeSymbol? Basically "site.tsym" instead of "new
> Types.UniqueType(site...)". To me that would feel simpler.

I had the feeling that using 'site.tsym' might fail with arrays, but
I'll check this.

> -should there be a method in Symtab managing the map? Something like:
> Symtab.getClassField(TypeSymbol tsym) {/*create the VarSymbol is needed*/}

I'll take a look if you think it's worth adding a method for this.

> Thanks,
>     Jan

Thanks,
Bernard


More information about the compiler-dev mailing list