Skip to content

EL1072E when evaluating compiled null-safe expression [SPR-16489] #21032

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 1db7e02, d3acf45

Backported to: 4.3.16

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions