Compiled elvis operator does not work correctly when default value is a complex expression [SPR-17214] #21747
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
heyouxian opened SPR-17214 and commented
Following exception raised when I execute
"record.get('MR_dlEARFCN')?:record.put('MR_dlEARFCN',expression.dl_CarrierFreq?.longValue())"
If I change expression to
"record.get('MR_dlEARFCN')==null?record.put('MR_dlEARFCN',expression.dl_CarrierFreq?.longValue()):null"
, the following exception is raised:I have to use
"record.put('MR_dlEARFCN',record.get('MR_dlEARFCN')==null?expression.dl_CarrierFreq?.longValue():record.get('MR_dlEARFCN'))"
to make it work.Affects: 4.3.18, 5.0.8
Backported to: 4.3.19
The text was updated successfully, but these errors were encountered: