RFR: JDK-8306112 Implementation of JEP 445: Flexible Main Methods and Anonymous Main Classes (Preview) [v2]
Jan Lahoda
jlahoda at openjdk.org
Fri Apr 28 13:33:28 UTC 2023
On Thu, 27 Apr 2023 20:34:44 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> The source file name is not available until after parsing.
>
> I see that logic in JavaCompiler - I wonder if that's just the way it is, or if there's a deeper reason as to why the sourcefile is set on the toplevel unit *after* parsing (I don't think I can see any, in which case that might be changed if that makes the rest of the code simpler). @lahodaj what do you think?
I believe we were discussing this some time ago, and there were some problems. I don't recall the exact details, but I'll try to look into this later.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13689#discussion_r1180377062
More information about the build-dev
mailing list