[
https://jira.jboss.org/jira/browse/JBRULES-2421?page=com.atlassian.jira.p...
]
Tihomir Surdilovic resolved JBRULES-2421.
-----------------------------------------
Fix Version/s: 4.0.8
Resolution: Done
org.drools.RuntimeDroolsException: unable to determine ValueType for
Class [class MyClass] on IBM JVM with JIT enabled
----------------------------------------------------------------------------------------------------------------------
Key: JBRULES-2421
URL:
https://jira.jboss.org/jira/browse/JBRULES-2421
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.0.7
Reporter: Tihomir Surdilovic
Assignee: Tihomir Surdilovic
Fix For: 4.0.8
On IBM JVM with JIT enabled using Drools 4.0.7 often the following exception occurs:
org.drools.RuntimeDroolsException: unable to determine ValueType for Class [class
MyClass]
at org.drools.base.ValueType.determineValueType(ValueType.java:222)
at org.drools.base.ClassObjectType.<init>(ClassObjectType.java:56)
at org.drools.reteoo.Rete$ClassObjectTypeConf.<init>(Rete.java:442)
at org.drools.reteoo.Rete.assertObject(Rete.java:152)
...
We have determined that in the IBM JVN with JIT enabled, the expression "XXXX
instanceof Object" fails sometimes. On the other hand expression "XXXX
isAssignableFrom(YYYYYY) ... " works as expected. The code change required here is in
org.drools.base.ValueType change:
...
} else if ( clazz instanceof Object ) {
return ValueType.OBJECT_TYPE;
...
to
...
else if ( Object.class.isAssignableFrom( clazz ) ) {
return ValueType.OBJECT_TYPE;
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira