Skip to content

Output in System.err 'Two methods with same method  #35

@harawata

Description

@harawata

Here is a repro:

  @Test
  public void test() throws Exception {
    String expressiosn = "list.isEmpty()";
    Object expr = Ognl.parseExpression(expressiosn);
    OgnlContext ctx = new OgnlContext();
    List<String> list = Collections.singletonList("string");
    ctx.put("list", list);
    Object value = Ognl.getValue(expr, ctx);
    Assert.assertFalse((Boolean)value);
  }

The above test passes, but the following message is output in System.err.

Two methods with same method signature but not providing classes assignable? "public abstract boolean java.util.List.isEmpty()" and "public boolean java.util.AbstractCollection.isEmpty()" please report!

  • The line that outputs the message is here.
  • This seems to be a side effect of ca37319 .

This was reported on MyBatis tracker a while ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions