-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid error message 'Two methods with same method sigunature but not providing classes assignable?' in System.err #929
Comments
Hi, It's OGNL that outputs the message. @Test
public void testEmptyCheck2() 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);
} I did a manual bisect on OGNL and it seems to be your PR that |
Hi @harawata A cause of this issue is OGNL implementation. However the MyBatis use repackaging classes. Therefore I think better this issue is keeping a open status until apply a bug fix OGNL. |
Okay. But I will lock the thread if we start getting 'me too' comments like the last one ;) |
I've added new label(bug on dependency library). |
Hi @vlastimil-dolejs, Could you report this issue to OGNL ? |
when will fix this bug, waiting。 |
waiting +1; |
😔 |
The waiting is over! |
What's the ETA for |
OgnlRuntime writes this error to 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!
This condition in my mapper causes the problem:
<if test="conditions != null && !conditions.isEmpty()">
conditions
variable is anjava.util.Collections.singletonList()
. When I change this variable toArrayList
, error disapears.The text was updated successfully, but these errors were encountered: