Skip to content

Expose PluginClassLoader addURL #5631

@xIGBClutchIx

Description

@xIGBClutchIx

Is your feature request related to a problem?

Starting with Java 16 this will be an issue with some plugins. Notability a big plugin like LuckPerms uses this.

Describe the solution you'd like.

I was wondering if we go could get easy access to adding a URL to the plugin class loader. Currently, addURL for the PluginClassLoader protected as it is the default set by URLClassLoader.

Adding this to PluginClassLoader would fix said issues.

@Override
public void addURL(URL url) {
    super.addURL(url);
}

Describe alternatives you've considered.

An alternative we could use would be a Dependency API. I personally wrote my own but it is still quite hacky with the loading. Example of such which does not work with Java 16 at all: DependenciesGen

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported Paper build.

Other

I personally went to Spigot about said request but seems this has been a request feature for around 2 years with no resolve at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureRequest for a new Feature.
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions