Cayenne
  1. Cayenne
  2. CAY-1551

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1M1
    • Fix Version/s: None
    • Component/s: Core Library
    • Labels:
      None

      Description

      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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcin Skladaniec
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development