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

A Declared bean's field's initialization expression is ignored if the type is primitive

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

    XMLWordPrintable

Details

    • Hide

      declare Bean
      field : int = 3*4
      end

      rule "Test"
      when
      then
      System.out.println( new Bean() );
      end

      Show
      declare Bean field : int = 3*4 end rule "Test" when then System.out.println( new Bean() ); end

    Description

      It should be possible to use valid MVEL expressions to initialize the fields of declared beans (using the default constructor).

      declare Bean
      field : int = 3*4
      end

      If the field type is primitive (int, double, ...) or boxed (Integer, Boolean, Float, ...), the expression is ignored

      Attachments

        Activity

          People

            dsotty Davide Sottara (Inactive)
            dsotty Davide Sottara (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty