aardpfark icon indicating copy to clipboard operation
aardpfark copied to clipboard

Passing a String to the == (Core eq) operator throws a JaninoRuntimeException

Open MLnick opened this issue 7 years ago • 0 comments

This throws an exception with the following warning: org.codehaus.janino.JaninoRuntimeException: Incompatible return types

This can be reproduced with the following code

    val action = core.eq(inputExpr, "cat")
    val pfaDoc = new PFABuilder()
      .withInput[String]
      .withOutput[Boolean]
      .withAction(action)
      .pfa
    val engine = getPFAEngine(pfaDoc.toJSON())
    engine.action(engine.jsonInput("cat"))

MLnick avatar Jun 08 '18 17:06 MLnick