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

Infinite loop when expanding DSL rule

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.1.Final, 6.0.0.Alpha9
    • None
    • None
    • None

      Description of problem:
      Given a DSL configuration containing
      > [when]Foo with

      {var} bars=Foo( bars == {var}

      )

      and a probably incorrect rule containing
      > when
      > Foo with

      {var} bars

      When this rule is expanded by org.drools.lang.dsl.DefaultExpander the expansion gets stuck in an infinite loop, probably substituting {var}

      with

      {var}

      again and again.

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

              Created:
              Updated:
              Resolved: