Does BlackBirdModule requires the parameter MethodHandles::lookup when used with Java 9+ upwards? #264
-
It seems with "newer" versions (Java 9 and above) Blackbird doesn't work without passing The documentation isn't totally clear on that. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @helpermethod , the lookup object should not be required in classpath based deployments. I do not pass in any lookup configuration myself when we use Blackbird. sorry this isn't explained well in the docs. We could improve that, although I am starting to come around to the feeling that Jackson should just cut over to using MethodHandle based reflection in core and then on modern JVMs there is probably little reason to run afterburner or blackbird anymore. Hope that helps |
Beta Was this translation helpful? Give feedback.
Hi @helpermethod , the lookup object should not be required in classpath based deployments.
It is provided as an escape hatch in case you use modules or some other protection that requires accessing your objects with a MethodHandle with special privileges, like if it needs to come from the same module to access
private
members.I do not pass in any lookup configuration myself when we use Blackbird.
sorry this isn't explained well in the docs. We could improve that, although I am starting to come around to the feeling that Jackson should just cut over to using MethodHandle based reflection in core and then on modern JVMs there is probably little reason to run afterburner or blackbird anymore.