SWI-Prolog / packages-jpl

JPL: The Prolog <-> Java interface
BSD 2-Clause "Simplified" License
54 stars 33 forks source link

finalize() in Object to be deprecated #101

Closed ssardina closed 4 months ago

ssardina commented 4 months ago

When compiling:

$ ninja
[1115/2616] Building Java objects for jpltest.jar
org/jpl7/standalone/Garbo.java:13: warning: [removal] finalize() in Object has been deprecated and marked for removal
    protected void finalize() throws Throwable {
                   ^
org/jpl7/standalone/Garbo.java:18: warning: [removal] finalize() in Object has been deprecated and marked for removal
            super.finalize();
                 ^
2 warnings
[2616/2616] Generating home/doc/manindex.db
JanWielemaker commented 4 months ago

Apparently by Java SDK is still too old for that. Could you propose a solution? My Java knowledge is close to zero.

JanWielemaker commented 4 months ago

Fedora updated my SDK :smile: I looked into this and cannot find any usage of the Garbo class, so I simply removed it. As it is only part of the tests and the tests still succeed I hope this is ok.