Skip to content

Recent versions of Java issue a warning about restricted use of java.lang.System::load #50

@eclab

Description

@eclab

When I launch an application using CoreMidi4J on a very recent version of Java I get the following ugly warning:

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by uk.co.xfactorylibrarians.coremidi4j.Loader in an unnamed module (file:/........ [this is my application jar file, which contains uk.co.xfactorylibrarians.coremidi4j.Loader] )
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

That doesn't look good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions