[jboss-jira] [JBoss JIRA] (DROOLS-47) Recovery from ChangeSet compilation fail

Karel Cemus (JIRA) jira-events at lists.jboss.org
Thu Feb 21 05:40:56 EST 2013


Karel Cemus created DROOLS-47:
---------------------------------

             Summary: Recovery from ChangeSet compilation fail
                 Key: DROOLS-47
                 URL: https://issues.jboss.org/browse/DROOLS-47
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
         Environment: Drools Expert 5.4.0, 5.5.0
            Reporter: Karel Cemus
            Assignee: Mark Proctor
            Priority: Minor


Drools org.drools.compiler.PackageBuilder has a bug in loading damaged change-sets preventing its recovery using undo() method.


When user adds new Drools resource into KnowledgeBuilder, its implementation KnowledgeBuilderImpl on line 50 calls PackageBuilder to register the change set file as an official resource.

In a following step the PackageBuilder extracts all mentioned resources from that change-set file and processes each of them separately but without their official registration in loaded resources. But these resources are processed under their own resource name which is the key in the set of reported errors. 

Due to such behavior there remains errors preventing building stable org.drools.KnowledgeBase with an IllegalArgumentException even after calling KnowledgeBuilder#undo(), because it removes only errors reported directly with the change-set resource, but not the errors reported with resources from the change-set.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list