You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
script.model.ScriptInterpreter: emit what cannot be casted to what
after a single evaluation of the cast. Before this change
internalEvaluate(castedExpression.getTarget(), context, indicator)
was invoked twice. When on the first execution an error occured, the
second execution was needed to create an error message, stating what
cannot be casted to what. However at the time internalEvaluate was
called for a second time, internal states have changed, so there might
be no more errors with casting, thus producing incorrect error message.
Except the line
"Could not cast (" + result.class + ")" + result + " to " + typeName
the implementation is the same as in XbaseInterpreter.java.
Copy file name to clipboardExpand all lines: bundles/org.openhab.core.model.script/src/org/openhab/core/model/script/interpreter/ScriptInterpreter.xtend
0 commit comments