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

jsr94 constants wrong package builder config constant, same name as rulebase config constant

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.0.0.GA
    • Fix Version/s: 4.0.1
    • Component/s: drools-jsr94
    • Labels:
      None

      Description

      org.drools.jsr94.rules.Constants, line 49f:

      /** <code>RuleExecutionSet</code> rulebase config constant. */
      public static final String RES_RULEBASE_CONFIG = "javax.rules.admin.RuleExecutionSet.ruleBaseConfiguration";

      /** <code>RuleExecutionSet</code> package builder config constant. */
      public static final String RES_PACKAGEBUILDER_CONFIG = "javax.rules.admin.RuleExecutionSet.ruleBaseConfiguration";

      Packagebuilder config constant is same as rulebase config constant. yields classcast exception if a rulebase config is set:

      Caused by: java.lang.ClassCastException: org.drools.RuleBaseConfiguration
      at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(LocalRuleExecutionSetProviderImpl.java:124)
      at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(LocalRuleExecutionSetProviderImpl.java:93)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mark.proctor Mark Proctor
                Reporter:
                work_registries Juergen H
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: