RFR: 8348427: DeferredLintHandler API should use JCTree instead of DiagnosticPosition
Archie Cobbs
acobbs at openjdk.org
Fri Jan 24 23:34:28 UTC 2025
On Fri, 24 Jan 2025 18:42:49 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This seems like a great plan. We don't have to get there in one step (and this PR can proceed separately). I just want to make sure that we end up somewhere around there :-)
Sounds good. I created [JDK-8348611](https://bugs.openjdk.org/browse/JDK-8348611) to capture the idea.
> I believe that in `flow` we still see all the classes in the same source as belonging to the same toplevel unit. It's after desugar that things start to get messier. So, I believe that the warning visitor can assume that it's called once per compilation unit, and call flush on all the stuff that belongs to that unit.
Thanks - that makes life simpler.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23281#issuecomment-2613589887
More information about the compiler-dev
mailing list