RFR: 8272564: Incorrect attribution of method invocations of Object methods on interfaces

Vicente Romero vromero at openjdk.java.net
Thu Aug 19 14:32:27 UTC 2021


On Thu, 19 Aug 2021 12:53:26 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> > I think that this one deserves a CSR, plus please consider also running the JCK tests just to double check
> 
> Thanks, I've started to file the CSR here, please take a look:
> https://bugs.openjdk.java.net/browse/JDK-8272564
> 
> > question shouldn't field `supertype_field` in ClassType be assigned something different than j.l.Objet for interfaces with no super interface after your change?
> 
> Not having interfaces "subclass" `j.l.Object` would be an alternative variant of the fix (it would probably remove the need to these changes altogether). In my experiments, it seemed quite complex to do, however. I can try again, if desired.
> 
> Thanks for the comments!

yep I was also considering that it would be a big change, but seems like the right thing to do, I let it to your consideration

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

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


More information about the compiler-dev mailing list