Skip to content
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

Duplicate methods in super interfaces of imported service may cause runtime error #54

Open
mcculls opened this issue Jun 22, 2015 · 2 comments

Comments

@mcculls
Copy link
Member

mcculls commented Jun 22, 2015

Originally reported on Google Code with 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.

Reported by oasisfeng on 2010-05-27 10:52:39

@mcculls
Copy link
Member Author

mcculls commented Jun 22, 2015

Reported by mcculls on 2012-08-04 21:20:37

  • Status changed: Accepted

@mcculls
Copy link
Member Author

mcculls commented Jun 22, 2015

Reported by mcculls on 2012-08-04 21:49:23

  • Labels added: Peaberry-Core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant