[SCL] Failure to create default Binding instance for Vector Integer type
When attempting to use the function binding
to get the default binding for a variable of type Vector Integer
, the following exception is thrown:
> binding :: Binding (Vector Integer)
java.lang.NoSuchFieldException: INTEGER_ARRAY
at java.base/java.lang.Class.getDeclaredField(Class.java:2411)
at org.simantics.scl.compiler.constants.JavaStaticField.realizeValue(JavaStaticField.java:63)
Rethrown as
org.simantics.scl.compiler.common.exceptions.InternalCompilerError: java.lang.NoSuchFieldException: INTEGER_ARRAY
at org.simantics.scl.compiler.constants.JavaStaticField.realizeValue(JavaStaticField.java:74)
at org.simantics.scl.compiler.elaboration.expressions.ELiteral.toIExpression(ELiteral.java:85)
at org.simantics.scl.compiler.elaboration.expressions.Expression.toIExpressions(Expression.java:334)
at org.simantics.scl.compiler.elaboration.expressions.EApply.toIExpression(EApply.java:199)
at org.simantics.scl.compiler.elaboration.expressions.ESimpleLambda.toIExpression(ESimpleLambda.java:146)
at org.simantics.scl.compiler.top.ExpressionEvaluator.eval(ExpressionEvaluator.java:363)
at org.simantics.scl.compiler.commands.CommandSession.compile(CommandSession.java:344)
This seems to originate in ReduceSerializable.java
, where an access to org.databoard.Bindings.INTEGER_ARRAY
is created. However, the binding is named org.databoard.Bindings.INT_ARRAY
, unlike the corresponding datatype org.databoard.Datatypes.INTEGER_ARRAY
.