I am using
EL1011E:(pos 50): Method call: Attempted to call method sin(java.lang.Integer) on null context object error.
Read the Spring Expression Language (SpEL) manual.
Option 1: §9.5.12 Functions:
You can extend SpEL by registering user defined functions that can be called within the expression string.
Option 2: §9.5.9 Types:
Toperator can be used to specify an instance of java.lang.Class (the type). Static methods are invoked using this operator as well.
If you go with option 1, you can register the
sin() function, and the expression will work unchanged.
If you go with option 2, then this is how the expression should look:
(1.25 > 8) ? (2.3125 * T(Math).sin(90) * 1.25) : (2.3125 * T(Math).sin(90) * 8)