Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3060

Very odd error message due to unknow class

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

      rule x when
      then
      X x = new Integer( 42 );
      end

      without an import or declare for X causes:

      Unable to Analyse Expression X x = new Integer( 42 );:
      [Error: unknown class or illegal statement: org.mvel2.ParserContext@1e1be92]
      [Near :

      {... X x = new Integer( 42 ); ....}

      ]
      ^
      [Line: 1, Column: 7]

      Note: (1) org.mvel2.ParserContext!
      Note: (2) The line number is relative to "then", but you'll have to guess that!

              etirelli@redhat.com Edson Tirelli
              laune Wolfgang Laun (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson

                Created:
                Updated:
                Archived: