[SPIGOT-6457] Expose PluginClassLoader addURL or Dependency API Created: 13/May/21  Updated: 13/May/21  Resolved: 13/May/21

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: xIGBClutchIx Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates SPIGOT-5352 Create public addURL method to Plugin... Open
Version: 2991-Spigot-018b9a0-f3f3094
Guidelines Read: Yes

 Description   

Starting with Java 16, classloaders and more are a bit more locked down. 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.

This prevents some stuff like dependency loaders and more from working at all without making a crazy hacky way.

So the easiest way would be to expose that for developers that know what they are doing. Or a crazy big improvement would include a whole dependency loader. I personally wrote my own but also quite hacky with the loading. Example of such which does not work with Java 16 at all: DependenciesGen


Generated at Tue Apr 22 04:54:50 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.