|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (ESPER-411) Operands of expression passed the wrong way round in patternsOperands of expression passed the wrong way round in patterns
------------------------------------------------------------- Key: ESPER-411 URL: http://jira.codehaus.org/browse/ESPER-411 Project: Esper Issue Type: Bug Affects Versions: 3.2 Reporter: Mitch Attachments: Test.java In the pattern: [ every e1=TestEvent -> e2=TestEvent(e1.quantity > e2.quantity) ] the two quantities are passed to the inequality expression the wrong way round, meaning the pattern fires in exactly the wrong places. Any operation on the quantities changes the behaviour eg: e2=TestEvent(e1.quantity + 0 > e2.quantity + 0) behaves as expected. Have attached test class (with main()) which shows the problem. Not tested pre 3.2. TestEvent is a POJO, and the error occurs if quantity is an int or a float- not tested others. I dont think it matters what the expression operator is. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Updated: (ESPER-411) Operands of expression passed the wrong way round in patterns[ http://jira.codehaus.org/browse/ESPER-411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Bernhardt updated ESPER-411: ----------------------------------- Fix Version/s: 3.3 Assigned to 3.3 > Operands of expression passed the wrong way round in patterns > ------------------------------------------------------------- > > Key: ESPER-411 > URL: http://jira.codehaus.org/browse/ESPER-411 > Project: Esper > Issue Type: Bug > Affects Versions: 3.2 > Reporter: Mitch > Fix For: 3.3 > > Attachments: Test.java > > > In the pattern: > [ every e1=TestEvent -> e2=TestEvent(e1.quantity > e2.quantity) ] > the two quantities are passed to the inequality expression the wrong way round, meaning the pattern fires in exactly the wrong places. > Any operation on the quantities changes the behaviour eg: > e2=TestEvent(e1.quantity + 0 > e2.quantity + 0) > behaves as expected. > Have attached test class (with main()) which shows the problem. Not tested pre 3.2. > TestEvent is a POJO, and the error occurs if quantity is an int or a float- not tested others. > I dont think it matters what the expression operator is. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (ESPER-411) Operands of expression passed the wrong way round in patterns[ http://jira.codehaus.org/browse/ESPER-411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199807#action_199807 ] Thomas Bernhardt commented on ESPER-411: ---------------------------------------- A workaround is to formulate as [ every e1=TestEvent -> e2=TestEvent(quantity < e1.quantity) ] > Operands of expression passed the wrong way round in patterns > ------------------------------------------------------------- > > Key: ESPER-411 > URL: http://jira.codehaus.org/browse/ESPER-411 > Project: Esper > Issue Type: Bug > Affects Versions: 3.2 > Reporter: Mitch > Fix For: 3.3 > > Attachments: Test.java > > > In the pattern: > [ every e1=TestEvent -> e2=TestEvent(e1.quantity > e2.quantity) ] > the two quantities are passed to the inequality expression the wrong way round, meaning the pattern fires in exactly the wrong places. > Any operation on the quantities changes the behaviour eg: > e2=TestEvent(e1.quantity + 0 > e2.quantity + 0) > behaves as expected. > Have attached test class (with main()) which shows the problem. Not tested pre 3.2. > TestEvent is a POJO, and the error occurs if quantity is an int or a float- not tested others. > I dont think it matters what the expression operator is. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Resolved: (ESPER-411) Operands of expression passed the wrong way round in patterns[ http://jira.codehaus.org/browse/ESPER-411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Bernhardt resolved ESPER-411. ------------------------------------ Resolution: Fixed in release 3.3 > Operands of expression passed the wrong way round in patterns > ------------------------------------------------------------- > > Key: ESPER-411 > URL: http://jira.codehaus.org/browse/ESPER-411 > Project: Esper > Issue Type: Bug > Affects Versions: 3.2 > Reporter: Mitch > Fix For: 3.3 > > Attachments: Test.java > > > In the pattern: > [ every e1=TestEvent -> e2=TestEvent(e1.quantity > e2.quantity) ] > the two quantities are passed to the inequality expression the wrong way round, meaning the pattern fires in exactly the wrong places. > Any operation on the quantities changes the behaviour eg: > e2=TestEvent(e1.quantity + 0 > e2.quantity + 0) > behaves as expected. > Have attached test class (with main()) which shows the problem. Not tested pre 3.2. > TestEvent is a POJO, and the error occurs if quantity is an int or a float- not tested others. > I dont think it matters what the expression operator is. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |