orderings with "+." in the path fail when performing in memory sort
-------------------------------------------------------------------

                 Key: CAY-1551
                 URL: https://issues.apache.org/jira/browse/CAY-1551
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.1M1
            Reporter: Marcin Skladaniec



Example stack:

Exception in thread "AWT-EventQueue-0" 
org.apache.cayenne.exp.ExpressionException: [v.3.0.1 Sep 06 2010 15:09:38] 
Error evaluating expression 'invoiceLine+.invoice.invoiceNumber'
        at 
org.apache.cayenne.exp.parser.SimpleNode.evaluate(SimpleNode.java:339)
        at org.apache.cayenne.query.Ordering.compare(Ordering.java:336)
        at java.util.Arrays.mergeSort(Arrays.java:1270)
        at java.util.Arrays.sort(Arrays.java:1210)
        at java.util.Collections.sort(Collections.java:159)
        at org.apache.cayenne.query.Ordering.orderList(Ordering.java:324)
....
Caused by: java.beans.IntrospectionException: No property 'invoiceLine+' found 
in class ish.oncourse.cayenne.Enrolment
        at 
org.apache.cayenne.reflect.PropertyUtils.getSimpleProperty(PropertyUtils.java:203)
        at 
org.apache.cayenne.reflect.PropertyUtils.getProperty(PropertyUtils.java:116)
        at 
org.apache.cayenne.exp.parser.ASTObjPath.evaluateNode(ASTObjPath.java:54)
        at 
org.apache.cayenne.exp.parser.SimpleNode.evaluate(SimpleNode.java:335)
        ... 52 more


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to