[jboss-jira] [JBoss JIRA] Created: (JBRULES-1061) jsr94 constants wrong package builder config constant, same name as rulebase config constant

Juergen none (JIRA) jira-events at lists.jboss.org
Mon Aug 6 09:23:49 EDT 2007


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

                 Key: JBRULES-1061
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1061
             Project: JBoss Rules
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: JSR94
    Affects Versions:  4.0.0.GA
            Reporter: Juergen none
         Assigned To: Mark Proctor
            Priority: Minor


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)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list