-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug
Milestone
Description
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)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug