Re: ExpressionFactory.matchAllExp(...)

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jul 25 2006 - 11:48:27 EDT

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Created: (CAY-610) A way to shutdown EventManager"

    > Expression qual = ExpressionFactory.matchAllExp(map,
    > Expression.AND);

    This line should look like:

        Expression qual = ExpressionFactory.matchAllExp(map,
    Expression.EQUAL_TO);

    I.e. the last parameter refers to the operation inside each key/value
    pair.

    Andrus

    On Jul 25, 2006, at 1:36 AM, Marcel wrote:
    > Andrus,
    >
    > Sorry, it came out unclearly in the email. The exception, an
    > ExpressionException, doesn't have a stack trace.
    >
    > Here is a standalone snippet that will create the problem:
    >
    > private void matchAllTest() {
    > HashMap map = new HashMap();
    > map.put("test", "test");
    > Expression qual = ExpressionFactory.matchAllExp(map,
    > Expression.AND);
    > }



    This archive was generated by hypermail 2.0.0 : Tue Jul 25 2006 - 11:48:52 EDT