Skip to content

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

Description

@MLnick

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"))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions