on Adf Studio Edition Version 12.2.1.2.0
I'm getting this Error Message on Application compile
****************************************************************************************************************
<value n="description" v="Error(15,91): [Static type checking] - Cannot find matching method java.lang.Object#multiply(java.math.BigDecimal). Please check if the declared type is right and if the method exists.
@ line 15, column 91."/>
****************************************************************************************************************
When I add Groovy Expression tested on Adf 11g.1.2.3.0
in a transient VO Attribute
the groovy expression is
---------------------------------------------------------------
if (DmDiscountRate==null & DmDiscountAmount != null) {(DmDiscountAmount==null ? 0 :DmDiscountAmount ) ;}
else {if (DmDiscountRate != null & DmDiscountAmount == null)
{ DocumentEntry.sum("ProductNetAmount") == null ? 0:DocumentEntry.sum("ProductNetAmount") * ((DmDiscountRate== null ? 0 : DmDiscountRate)/100)};
else {0}; }
-------------------------------------
I set the Transient excretion trustmode : trusted but I get the following Error
I add the same exact groovy Exprition inside the VO Source after I remove the check mark of Enable Groovy file Generation

and the application works fine and the value is calculated correct
is there any hint about that??
Thanks !!