-
Bug
-
Resolution: Done
-
Blocker
-
7.53.0.Final
-
None
-
2021 Week 25-27 (from Jun 21), 2021 Week 28-30 (from Jul 12)
-
3
-
-
Undefined
-
NEW
-
NEW
I'm developing a program that does incremental compilation.
I have a Models file containing a "declare". Filename "Drools-0.drl".
And I have a file with some rules. Name "Rule-1221.drl".
I created another file called "Rule-1221-2.drl". With a single change.
The Model was never updated. But it gives "cannot cast"
java.lang.ClassCastException: class myPkg.StringWrapper cannot be cast to class myPkg.StringWrapper (myPkg.StringWrapper is in unnamed module of loader org.drools.dynamic.DynamicProjectClassLoader$DefaultInternalTypesClassLoader @30b34287; myPkg.StringWrapper is in unnamed module of loader org.drools.dynamic.DynamicProjectClassLoader$DefaultInternalTypesClassLoader @309028af) at org.drools.base.myPkg.StringWrapper885991756$getS.getValue(Unknown Source) at org.drools.core.base.extractors.BaseObjectClassFieldReader.isNullValue(BaseObjectClassFieldReader.java:158) at org.drools.core.base.ClassFieldReader.isNullValue(ClassFieldReader.java:210) at org.drools.core.reteoo.CompositeObjectSinkAdapter$HashKey.setValue(CompositeObjectSinkAdapter.java:939) at org.drools.core.reteoo.CompositeObjectSinkAdapter$HashKey.<init>(CompositeObjectSinkAdapter.java:907) at org.drools.core.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:550) at org.drools.core.reteoo.ObjectTypeNode.propagateAssert(ObjectTypeNode.java:297) at org.drools.core.phreak.PropagationEntry$Insert.propagate(PropagationEntry.java:162) at org.drools.core.phreak.PropagationEntry$Insert.execute(PropagationEntry.java:167) at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:100) at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:95) at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:853) at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:816) at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:808) at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1345) at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1336) at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1320) at org.drools.compiler.integrationtests.incrementalcompilation.IncrementalCompilationTest.testCreateFileSetWithDeclaredModel(IncrementalCompilationTest.java:5031)