Closed
Description
Juan Domínguez González opened SPR-16489 and commented
When evaluating an expression involving a null-safe access to a field it fails when using the bytecode compiled expression.
Can be reproduced using the attached test case.
The problem could reside in class PropertyOrFieldReference. Its readProperty method (used when evaluating in interpreted mode), takes into account the nullSafe field, however its generateCode method doesn't use the nullSafe field. It seems that generateCode method could append bytecodes for null-checking the context object, as in the interpreted version.
Affects: 4.3.14
Attachments:
- NullSafeTestBean.java (2.06 kB)
Referenced from: commits 1db7e02, d3acf45
Backported to: 4.3.16