RFR: 8348611: Eliminate DeferredLintHandler and emit warnings after attribution [v10]

Jan Lahoda jlahoda at openjdk.org
Wed Aug 13 19:41:16 UTC 2025


On Wed, 13 Aug 2025 19:36:59 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

>> yes you are right we have other DSs with the same `issue` if any. I guess discuss and address it as a separate issue
>
>> yes you are right we have other DSs with the same `issue` if any. I guess discuss and address it as a separate issue
> 
> I'm not familiar with all of the various compiler life-cycle variants, but I guess it would boil down to the question, "In what scenarios would a `Context` that's not a `ReusableContext` be reused for multiple compilations?"

FWIW, this is an instance field on a `Context` service - it will be GCed when the given javac instance is GCed. I think in most cases, use of weak maps is not necessary.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24584#discussion_r2274438431


More information about the compiler-dev mailing list