Incremental compilation doesn't work if the newly added drl contains a declared type.
Fixed by https://github.com/droolsjbpm/droolsjbpm-knowledge/commit/c3b5b46b1 and https://github.com/droolsjbpm/drools/commit/b88dab153
Davide Sottara <dsotty> updated the status of jira DROOLS-363 to Reopened
Davide Sottara <dsotty> made a comment on jira DROOLS-363 If the new DRL contains a REDECLARATION of a previously declared type X, and any other class Y is generated during its compilation process, a package-level rewire of X might "orphan" existing instances. Should they match any rule, a ClassCastException will be thrown.
Mario Fusco <mario.fusco> updated the status of jira DROOLS-363 to Resolved
Both commits are in product repository. Since the incremental build is internal feature and test for this fix was provided in community, I mark this issue as verified.