Skip to content

EL1072E when evaluating compiled comparison expression #22358

@jdomigon

Description

@jdomigon

NullComparisonTestBean.java.txt

Affects: 4.3.16
When evaluating an expresion involving a numeric comparison with a boxed integer, it fails when using the bytecode compiled expression.

Very similar to #SPR-16489. Can be reproduced using the attached test case.

The problem, apparently, resides in method Operator.generateComparisonCode(). Its generated code does append bytecodes for unboxing values when necessary, but doesn't take into account a potential NPE. In interpreted mode, null check is made in method StandardTypeComparator.compare().

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