We experiences experienced a very strange problem lately, where we have an injected {{ EntityManager }} . When calling the {{ .setProperty() }} method in this instance, it fails when having groovy on the classpath.
{code} java.lang.AbstractMethodError: org.jboss.weldx.persistence.EntityManager$861077825$Proxy$_$$_WeldClientProxy.setProperty(Ljava/lang/String;Ljava/lang/Object;)V {code}
Correct me if I'm wrong, but I think the {{ GroovyMethodFilter }} should filter those mentioned methods only on Groovy objects (which is not the case for our {{ EntityManager }} ), so the code should look more like this:
{code} @Override public boolean accept(Method method) { if (GROOVY_OBJECT.equals(method.getDeclaringClass().getName())) { for (MethodSignature groovyMethod : METHODS) { if (groovyMethod.matches(method)) { return false; } } }
return true; } {code} |
|