Hi all, Is there any limitation about the length of attribute's name when declare type in drl file?

I encountered a problem these days, I declared a new type in rule file, when fire rules, it always throw java.lang.ClassCaseException: test.obj cannot be cast to test.obj. As I inspected, this is caused by the length of an attribute's name is too long, it's 35 characters, if I remove this attribute, there's no exception.

Following is snippet of my rule file:

package test

declare obj
@propertyReactive
type : String
name : String
attribute_name_too_long_reach_limitation: Boolean
end

rule "a"
dialect "mvel"
salience 0
no-loop
when
$obj:obj(type == "a")
then
modify ($obj) {name = "abc"};
end



View this message in context: Is there any limitation about the length of attribute's name when declare type in drl file
Sent from the Drools: User forum mailing list archive at Nabble.com.