New issue 51 by oasisfeng: Duplicate methods in super interfaces of
imported service may cause runtime error
http://code.google.com/p/peaberry/issues/detail?id=51
What steps will reproduce the problem?
1. Import org.eclipse.equinox.log.ExtendedLogService in a module.
2. Run my application
What is the expected output? What do you see instead?
I got the following error:
java.lang.ClassFormatError: Duplicate method name&signature in class file
org/eclipse/equinox/log/ExtendedLogService$pbryglu
What version of the product are you using? On what operating system?
Peaberry-1.1.1
Please provide any additional information below.
I think it is caused by multiple super interfaces with at lease one same
method (in my case: org.osgi.service.log.LogService and
org.eclipse.equinox.log.Logger both have log(int, String) method).
ImportGlue.generateProxy() use Class.getMethods() to retrieve all the
methods which may contains this kind of duplications.