Skip to content

Does BlackBirdModule requires the parameter MethodHandles::lookup when used with Java 9+ upwards? #264

Discussion options

You must be logged in to vote

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.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@cowtowncoder
Comment options

@helpermethod
Comment options

@stevenschlansker
Comment options

@cowtowncoder
Comment options

Answer selected by helpermethod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
blackbird Issue related to Blackbird module
3 participants