Fix Capture Expression on primitives by jpbempel · Pull Request #10549 · DataDog/dd-trace-java
As CapturedValue are evaluated through Expression Language, we are dropping types in the process and resulting having boxed primitives captured and serialized into the snapshot. We introduce keeping track of the type in EL values by introducing ValueType enum. This way each EL expression evaluated can return a value that keep the existing type (Object, int, long, double, ...) Also lookup and getMember methods from ValueReferenceResolver are now returning CapturedValue to get the type and be able to transfer it to EL values
jpbempel
deleted the
jpbempel/fix-cap-expr-boxed-prims
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters