]
Mario Fusco resolved DROOLS-5956.
---------------------------------
Resolution: Done
Fixed by
Illegal reflective access
-------------------------
Key: DROOLS-5956
URL:
https://issues.redhat.com/browse/DROOLS-5956
Project: Drools
Issue Type: Bug
Affects Versions: 7.48.0.Final
Reporter: Damon Horrell
Assignee: Mario Fusco
Priority: Minor
Using Java 11, Drools MVEL is reporting an Illegal reflective access warning:
{{WARNING: Illegal reflective access by
org.drools.mvel.asm.ClassGenerator$DefineMethodInitializer
(file:/Users/damon/.m2/repository/org/drools/drools-mvel/7.48.0.Final/drools-mvel-7.48.0.Final.jar)
to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)}}{{at
org.drools.mvel.asm.ClassGenerator$DefineMethodInitializer.createDefineMethod(ClassGenerator.java:126)}}{{at
org.drools.mvel.asm.ClassGenerator$DefineMethodInitializer.<clinit>(ClassGenerator.java:117)}}{{at
org.drools.mvel.asm.ClassGenerator.generateClass(ClassGenerator.java:177)}}{{at
org.drools.mvel.asm.ClassGenerator.newInstance(ClassGenerator.java:214)}}{{at
org.drools.mvel.asm.ConsequenceGenerator.generate(ConsequenceGenerator.java:140)}}{{at
defaultpkg.Rule_Expand_HealthCase181668088DefaultConsequenceInvoker.evaluate(Unknown
Source)}}{{at
org.drools.core.phreak.RuleExecutor.innerFireActivation(RuleExecutor.java:434)}}{{at
org.drools.core.phreak.RuleExecutor.fireActivation(RuleExecutor.java:382)}}{{at
org.drools.core.phreak.RuleExecutor.fire(RuleExecutor.java:138)}}{{at
org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:90)}}{{at
org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:33)}}{{at
org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)}}{{at
org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1111)}}{{at
org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1058)}}{{at
org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1050)}}{{at
org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1346)}}{{at
org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1337)}}{{at
org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1321)}}
{{Is there a plan to update this code to avoid the warning (which will become an error in
some future version of Java)?}}