Skip to content

Conversation

@A248
Copy link
Contributor

@A248 A248 commented Jan 4, 2026

This is an analogue to #12580 , but for Paper plugin classloaders.

More debug info can never hurt, and besides, the same rationale holds as for that PR.

@A248 A248 requested a review from a team as a code owner January 4, 2026 20:15
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Jan 4, 2026
try {
entry = this.jar.getJarEntry(path);
} catch (IllegalStateException zipFileClosed) {
String pluginName = Objects.requireNonNullElse(configuration.getName(), "<uninit>");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont think getName can ever be null, otherwise lgtm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not set in the constructor, and for purposes of future-proofing and debugging, I would never want to make a classloading error worse to debug than it already is.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if somebody puts null there, which really isnt possible, things will blow up A LOT easier

@lynxplay lynxplay merged commit 575df56 into PaperMC:main Jan 4, 2026
5 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting review to Merged in Paper PR Queue Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

3 participants