Re: Backwards compatibility

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Aug 14 2007 - 17:42:09 EDT

  • Next message: Aristedes Maniatis: "Re: [DISCUSSION] Java 5 and 3.0 schedule"

    Ok, I think it is not the same but related. Comparing ASTEquals and
    ASTLikeIgnoreCase, NULL wrapping is done differently:

      public ASTEqual(ASTPath path, Object value) {
             super(ExpressionParserTreeConstants.JJTEQUAL);
             jjtAddChild(path, 0);
             jjtAddChild(new ASTScalar(value), 1);
             connectChildren();
         }

      public ASTLikeIgnoreCase(ASTPath path, Object pattern) {
             super(ExpressionParserTreeConstants.JJTLIKEIGNORECASE, true);
             jjtAddChild(path, 0);
             jjtAddChild(wrapChild(pattern), 1);
             connectChildren();
         }

    Andrus

    On Aug 14, 2007, at 5:35 PM, Andrus Adamchik wrote:

    >
    > On Aug 3, 2007, at 1:46 PM, Kevin Menard wrote:
    >
    >> Take my run-in with passing null into
    >> ExpressionFactory#likeIgnoreCaseExp. In 3.0, this results in an NPE
    >> (that I planned to clean up), whereas in 2.0 it results in a properly
    >> constructed Expression.
    >
    > Kevin,
    >
    > by any chance this is the same problem as this Jira that I just
    > opened?
    >
    > https://issues.apache.org/cayenne/browse/CAY-847
    >
    > Andrus
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Aug 14 2007 - 17:42:42 EDT