jackson-databind icon indicating copy to clipboard operation
jackson-databind copied to clipboard

use MethodHandles instead of reflect.Method

Open pjfanning opened this issue 5 months ago • 2 comments

jackson-databind is very dependent on java reflection but we can start rewriting some pieces of code to avoid it

pjfanning avatar Jan 18 '24 12:01 pjfanning

can these be static final fields? those have special optimizations in hotspot

yawkat avatar Jan 18 '24 12:01 yawkat

can these be static final fields? those have special optimizations in hotspot

they can't be static final the way the code is written at the moment but a bigger rewrite might be able to achieve that

it looks like we won't be able to merge this anyway because animal-sniffer (Android compatibility checking) is rejecting the use of MethodHandles

pjfanning avatar Jan 18 '24 12:01 pjfanning