RFR: 8355753: @SuppressWarnings("this-escape") not respected for indirect leak via field
Vicente Romero
vromero at openjdk.org
Thu May 29 19:50:53 UTC 2025
On Thu, 29 May 2025 19:22:41 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> nit: consider adding a similar test case with an additional constructor that is not annotated with the @SuppressAnnotations annotation so that the warning is issued
and probably another variation doing something like:
private int x;
{
x = this.mightLeak();
}
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24932#discussion_r2114642905
More information about the compiler-dev
mailing list