[jboss-jira] [JBoss JIRA] (JBRULES-3596) KnowledgeBase Incremental Build does not manage compiled types correctly

Davide Sottara (JIRA) jira-events at lists.jboss.org
Fri Aug 3 18:25:06 EDT 2012


Davide Sottara created JBRULES-3596:
---------------------------------------

             Summary: KnowledgeBase Incremental Build does not manage compiled types correctly
                 Key: JBRULES-3596
                 URL: https://issues.jboss.org/browse/JBRULES-3596
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-compiler, drools-core
    Affects Versions: 5.4.0.Final
            Reporter: Davide Sottara
            Assignee: Davide Sottara
            Priority: Blocker
             Fix For: 5.5.0.Beta1


The issue arises when a KnowledgeBuilder is initialized with a KnowledgeBase for incremental building. 
Notice that this is what happens when a KnowledgeAgent is created setting the "useKBaseClassLoaderForCompiling" option.

The Kbuilder's PackageBuilder (~ line #1190) creates/gets a Package from the Rulebase, effectively adding the compilation results to the rulebase. 
However, AbstractRuleBase.addPackages (~ line #510) is called before the packageDescr is really compiled, so the kbuilder's additions are not correct (the rewiring done by addPackages is not performed) and the package(s) generated by the packagebuilder must be readded to the rulebase.
However, the compiled resources (e.g. declared types) are not rewired properly, so the class mismatch between the ones used for compilation and 
the ones used for runtime will prevent rules from firing.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list