Skip to content

fix(ReflectInit): continue addon loop when an addon has no annotated methods - #6718

Merged
MineGame159 merged 1 commit into
MeteorDevelopment:masterfrom
Eccys:fix/reflect-init-early-return
Oct 17, 2026
Merged

MineGame159 merged 1 commit into
MeteorDevelopment:masterfrom
Eccys:fix/reflect-init-early-return

Conversation

@Eccys

@Eccys Eccys commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

In ReflectInit.init(Class<? extends Annotation> annotation), if reflection.getMethodsAnnotatedWith(annotation) returns null for an earlier Reflections entry in reflections, if (initTasks == null) return; aborts the loop instead of continuing to the remaining registered addon packages.

Related issues

Relates to #6544

How Has This Been Tested?

Compiled with ./gradlew compileJava.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@MineGame159
MineGame159 merged commit a02dbff into MeteorDevelopment:master Oct 17, 2026
1 check passed
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.

2 participants