[
http://jira.jboss.com/jira/browse/JBRULES-1284?page=all ]
Mark Proctor reopened JBRULES-1284:
-----------------------------------
This breaks CompositeObjectSinkAdapter because it isn't working for Strings:
rule rule1
when
context : Context( state == Context.START_UP )
guest : Guest( name == "mark", sex != Sex.M, hobby ==
"english")
count : Count()
then
end
rule rule2
when
context : Context( state == Context.START_UP )
guest : Guest( name == "mark", sex != Sex.M, hobby ==
"french")
count : Count()
then
end
rule rule3
when
context : Context( state == Context.START_UP )
guest : Guest( name == "mark", sex != Sex.M, hobby ==
"xxx")
count : Count()
then
end
rule rule4
when
context : Context( state == Context.START_UP )
guest : Guest( name == "mark", sex != Sex.M, hobby ==
"yyy")
count : Count()
then
end
hobby should be hased but it's ObjectType is Object and thus it's not getting
hashed.
ClassCastException when using "<" constraint on field of
type java.lang.Object containing data of type java.lang.Integer
------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-1284
URL:
http://jira.jboss.com/jira/browse/JBRULES-1284
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.0.2
Environment: Windows XP, Eclipse 3.2
Reporter: Justin Wick
Assigned To: Edson Tirelli
Priority: Blocker
Fix For: 4.1.0, 4.0.4
Attachments: DroolsTest.zip
If I'm doing a pattern constraint, say "< 50" on a field, and that field
is type java.lang.Object, with a value of type java.lang.Integer, a ClassCastException is
generated at run time, although there is no compile-time error saying that this is an
illegal constraint.
See attached files for an example
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira