[jboss-jira] [JBoss JIRA] Created: (JBRULES-1766) Error in BaseIntFieldClassReader for ArrayList ( size == 1)

Michael Zimmermann (JIRA) jira-events at lists.jboss.org
Mon Sep 15 10:41:22 EDT 2008


Error in BaseIntFieldClassReader for ArrayList ( size == 1)
-----------------------------------------------------------

                 Key: JBRULES-1766
                 URL: https://jira.jboss.org/jira/browse/JBRULES-1766
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions:  5.0.0.M2
         Environment: Eclipse 3.4; Drools SVN trunk from today, Linux
            Reporter: Michael Zimmermann
            Assignee: Mark Proctor


The following rule worked perfectly with drools 4.0.x. Using Drools Trunk (post 5.0 M1) I do get an error in org.drools.base.extractors.BaseIntClassFiieldReader. Changing the ArrayList (size==1) definition to ArrayList() works, though.

rule "MyRule"
when
	ArrayList( size == 1 ) from collect ( SomeClass(  ) )
then
       do_something ()
end

As this is some hack also published on the mailing list for counting facts, I would expect to see this contruct to be compatible with drools 4.0.x

-- 
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

        



More information about the jboss-jira mailing list