-
Notifications
You must be signed in to change notification settings - Fork 172
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
Register a Treeprocessor with Class argument #443
Comments
This is the 'ol JRuby only understands certain package prefix problem.
See http://stackoverflow.com/questions/32423423/importing-jar-file-in-ruby-how-to-use-the-class |
That's a bingo! :-) We already had a similar issue in the past and all extension registration methods were fixed, except for... exactly this one. |
BTW 1.6.0 should not be affected because the handling of extensions is completely different there: The actual processor implementation is never directly passed to JRuby, but generated Ruby proxies instead. |
👍 |
Fixes #443. Don't fail when registering a treeprocessor with an unusu…
Perfect thanks!
|
…th an unusual package name
When I register a Treeprocessor with a Class argument, JRuby raises an exception:
Given the following code:
If I register
LunrTreeprocessor
withjavaExtensionRegistry.treeprocessor("fr.edf.distribution.automation.asciidoctor.extension.LunrTreeprocessor");
orjavaExtensionRegistry.treeprocessor(new LunrTreeprocessor());
this is working fine.I'm using AsciidoctorJ 1.5.4
The text was updated successfully, but these errors were encountered: