Question on recommended practice with FMA
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Apr 14 10:52:31 UTC 2021
On 14/04/2021 11:49, Maurizio Cimadamore wrote:
> Agree - this seems odd. I'm not super sure as to why that check was
> added to memory segment calls and what it does precisely (Eclipse uses
> a different compiler for generating this warnings than javac, which is
> the compiler that comes with OpenJDK).
>
> Maurizio
Ok - it seems like the warning blindly assumes that every new
AutoCloseable that is obtained must be closed.
This probably means that you are using the Java 16 API, not the new one?
But, in any case, even in the new API there might be issue when using
implicit resource scopes (as these are managed by the GC and not closed
by clients).
Maurizio
More information about the panama-dev
mailing list