Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-559

Trying to use a non-existing positional argument causes an IndexOutOfBoundsException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.1.0.Final
    • 6.1.0.CR2
    • None

      The attempt of using a non-existing positional argument should be reported as a compile time error while at the moment it causes the following exception:

      java.lang.IndexOutOfBoundsException: Error trying to access field at position 2
      at org.drools.core.factmodel.ClassDefinition.getField(ClassDefinition.java:185)
      at org.drools.compiler.rule.builder.PatternBuilder.processPositional(PatternBuilder.java:609)
      at org.drools.compiler.rule.builder.PatternBuilder.processConstraintsAndBinds(PatternBuilder.java:518)

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: