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

Parser error doesn't point at the problematic line in case of extra double quote

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 6.4.0.Final
    • core engine
    • None

    Description

      If you have a rule which wrongly has an extra double quote,

      rule "rule1"
               when
               then
                       System.out.println("1"");
      end
        
      rule "rule2"
               when
               then
                       System.out.println("2");
      end
       
      rule "rule3"
               when
               then
                       System.out.println("3");
      end
      

      Drools raises parser errors like this:

      [20,0]: [ERR 102] Line 20:0 mismatched input ''
      [20,0]: [ERR 102] Line 20:0 mismatched input '<eof>' in rule "rule1"
      [0,0]: Parser returned a null Package
      

      It doesn't point at the problematic line which actually contains the extra double quote. So it's difficult for users to find the root cause (Imagine you have bunch of rules generated by decision table).

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: