Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace reflection by direct JavaExtensionRegistry calls #596

Conversation

abelsromero
Copy link
Member

  • Stops any possible usage of AsciidoctorJ v1.6.x (long not supported)
  • Fixes issue where registering a non-Processor class was ignored without error
  • Small improvements to JavaDocs

closes #568

Thank you for opening a pull request and contributing to asciidoctor-maven-plugin!

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Documentation
  • Refactor
  • Build improvement
  • Other (please describe)

What is the goal of this pull request?
Mostly simplify code, functionality has been kept (other than fixing an un-reported error case).

Are there any alternative ways to implement this?
We are still instantiating the Class internally to check it and report any error with it instead of passing it to AsciidoctorJ as string.
We could do it, but then AsciidoctorJ would instantiate it again, decreasing performace.

Are there any implications of this pull request? Anything a user must know?
People still using v1.6.x will have to migrate, but the change is trivial, has no drawbacks and that version has not been supported by the latest plugin already.

Is it related to an existing issue?

  • Yes
  • No

Finally, please add a corresponding entry to CHANGELOG.adoc

* Stops any possible usage of AsciidoctorJ v1.6.x (long not supported)
* Fixes issue where registering a non-Processor class was ignored without error
* Small improvements to JavaDocs

closes asciidoctor#568
@abelsromero abelsromero force-pushed the issue-568-remove-reflection-in-AsciidoctorJExtensionRegistry branch from 0867747 to b8e7ed0 Compare August 25, 2022 20:06
@abelsromero abelsromero merged commit 59cd841 into asciidoctor:main Aug 25, 2022
@abelsromero abelsromero deleted the issue-568-remove-reflection-in-AsciidoctorJExtensionRegistry branch December 28, 2023 20:18
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.

Remove use of reflection in AsciidoctorJExtensionRegistry
1 participant