[OS-JIRA] Created: (CAY-86) NOT Expressions donot get printed properly

From: jir..bjectstyle.org
Date: Thu Jan 29 2004 - 11:40:45 EST

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-87) New objects stored in wrong order; FK violation"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-86

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-86
        Summary: NOT Expressions donot get printed properly
           Type: Bug

         Status: Assigned
       Priority: Trivial

        Project: Cayenne
     Components:
                 Cayenne Core Library

       Assignee: Andrus Adamchik
       Reporter: Nikhil Budhiraja

        Created: Thu, 29 Jan 2004 11:39 AM
        Updated: Thu, 29 Jan 2004 11:39 AM

    Description:
    Andrei,

    theres this tiny bug when you are printing an 'AND' or 'OR' expression and one of the operands is a 'NOT' expression, the expression type for NOT or other unary type operations doesnt get printed .. i think its because in
    Expression.toStringBuffer method
    you only print the expName() when the operandCount is more than one, which is not true for cases like the 'NOT..' types qualifiers.

    i just put in a local fix for me...here :
    if (i > 0 || expName().startsWith("NOT")) {
                    buf.append(" ").append(expName()).append(" ");
    }

    but i'm sure theres a better way of handling it.

    -nikhil

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Thu Jan 29 2004 - 11:40:47 EST