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

bug in fields inspection when creating Field Extractors for non-camelcase accessors

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 3.0.3, 3.1-m1
    • None
    • drools-compiler
    • None
    • Workaround Exists
    • Hide

      see comments thread

      Show
      see comments thread
    • Low

    Description

      Consider a java bean or POJO with a public String FOO; and these accessors:

      public String getFOO()

      { return FOO; }

      public void setFOO(String foo)

      { FOO = foo; }

      ---------------------------------------
      The
      rule "relation existance"
      when
      r : MyBean ( FOO == "" )
      then
      System.out.println("Found " + r.getName() + ".");
      end

      ...will cause:
      org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for 'FOO'

      at org.drools.rule.Package.checkValidity(Unknown Source)
      at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)
      ...

      Possible a quick fix only.
      I've marked it BLOCKING, because it prevents me and possibly others of using Drools together with Jena, the Ontology API.

      Best regards,
      Andy

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            alangegger Andreas Langegger (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty