A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/classgraph/classgraph/issues/899 below:

`nonapi.io.github.classgraph.utils.FileUtils` invokes terminally deprecated method `sun.misc.Unsafe::invokeCleaner` · Issue #899 · classgraph/classgraph · GitHub

Using ClassGraph with JDK >=24 (see https://openjdk.org/jeps/498) results in the following warning:

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::invokeCleaner has been called by nonapi.io.github.classgraph.utils.FileUtils (file:/home/zakkak/.m2/repository/io/github/classgraph/classgraph/4.8.179/classgraph-4.8.179.jar)
WARNING: Please consider reporting this to the maintainers of class nonapi.io.github.classgraph.utils.FileUtils
WARNING: sun.misc.Unsafe::invokeCleaner will be removed in a future release

The invocation happens in:

cleanerCleanMethod = unsafeClass.getMethod("invokeCleaner", ByteBuffer.class); Reproducer
///usr/bin/env jbang "$0" "$@" ; exit $?

//DEPS io.github.classgraph:classgraph:4.8.179

import static java.lang.System.*;
import io.github.classgraph.ClassGraph;
import io.github.classgraph.ScanResult;

public class ClassgraphRepro {

    public static void main(String... args) {
        try (ScanResult scanResult = new ClassGraph().enableAllInfo().scan()) {
            scanResult.getAllClasses().forEach(classInfo -> {
                out.println(classInfo.getName());
            });
        }
    }
}

MirkoTeran, don-vip, ujibang, MI3Guy, VolkerVoss and 9 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4