[ 
https://issues.apache.org/jira/browse/CAY-1551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Timofeev closed CAY-1551.
--------------------------------
    Resolution: Fixed
      Assignee: Nikita Timofeev

Fixed per 
https://github.com/apache/cayenne/commit/29428fcb57630241fa58dc6afdb9371016612ad9

> 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
>            Assignee: Nikita Timofeev
>
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to