Skip to content

Fix SpongeAPI 18 compatibility - #582

Open
Yeregorix wants to merge 3 commits into
lucko:masterfrom
Yeregorix:fix/sponge-api-18-compatibility
Open

Fix SpongeAPI 18 compatibility#582
Yeregorix wants to merge 3 commits into
lucko:masterfrom
Yeregorix:fix/sponge-api-18-compatibility

Conversation

@Yeregorix

Copy link
Copy Markdown

SpongeAPI 18 changes:

  • ABI breaking change on PluginContributor#name()
  • Field StandardPluginContainer#candidate is gone and can be replaced by StandardPluginContainer#resource. After seeing your use case I will probably add an API for that in Sponge, so you may not need reflection at all in the future.

I also noticed an existing bug that affects all versions:
identifyUrl fails to identify the path for the jar protocol on Windows.

Previous code was causing an IncompatibleClassChangeError
On Windows it was trying to resolve paths starting with /C:/ resulting in an InvalidPathException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant