We are in the process of upgrading our application from Weblogic 10.3.0
to 10.3.6
. When we try to deploy it we get the error:
java.lang.ClassFormatError: Duplicate method name&signature in class file...
Upon further investigation we discovered that the issue is caused by code that looks like this:
interface Foo{
void foo();
}
interface Bar{
void foo();
}
interface Baz extends Foo, Bar{}
BazEJB implements Baz....
This leads to 2 foo methods being generated in the Baz....ELOImpl.class
which leads to this error when we try to deploy the ear files.
The obvious workaround is to remove this pattern, but are there any other suggestions? Are we the ones in the wrong here or should that be considered a bug in weblogic?
We are still using EJB 2
and this pattern worked in Weblogic 8.1 and 10.3.0