RFR: 8325324: Implement JEP 477: Implicitly Declared Classes and Instance Main Methods (Third Preview) [v3]

Maurizio Cimadamore mcimadamore at openjdk.org
Wed May 22 14:34:06 UTC 2024


On Mon, 6 May 2024 14:07:08 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> I still think the `synthetizeEmptyInterfaceIfMissing` is a bit too optimistic - that makes the type "available" to javac even if does not exist, and that is probably not correct in this case. (It would mean one could write `java.io.IO io;`, and not get an error even if type didn't exist.)
> 
> But, I admit the speculative attribution was probably a bit too pessimistic. I've changed the code to do attribution, and check the result. Does this look better?
> 
> Thanks!

Thanks for the changes, the new approach seems a lot more balanced.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18633#discussion_r1610099460


More information about the compiler-dev mailing list