-
Notifications
You must be signed in to change notification settings - Fork 17
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 bridge methods #4
Comments
I think the synthetic check should be done here https://github.com/infradna/bridge-method-injector/blob/master/injector/src/main/java/com/infradna/tool/bridge_method_injector/MethodInjector.java#L249 Synthetic methods should be skipped in processing. |
A pull request with accompanying test (which fails on Java 8 without the fix) would be ideal. |
Ok, I will give it a try. |
@jglick Do you have an ETA for the fix? This issue is an impediment for us in jdk8 adoption. |
This is @kohsuke’s project, not mine. |
@kohsuke Do you have an estimate when a fix could be provided? It seems easy to fix and would make this project more usable for jdk8 based usage. |
@kohsuke Shall I also provide a pull request for the fix? |
I added now a pull request. Would it be possible to get a release or snapshot with this fix? |
I minimized now the changes in the pull request. |
Timo, Thanks for the fix! I've looked over the pull request; it looks good, and
On Tue, Jun 17, 2014 at 1:11 PM, Timo Westkämper notifications@github.com
|
@kohsuke Any chance to get a release including this fix in the near future? |
I get duplicate bridge methods generated by the bridge-method-injector when I compile with JDK 8 resulting in errors like these
It appears JDK 8 copies annotations to bridge methods as well https://bugs.openjdk.java.net/browse/JDK-6695379
So in cases where the compiler generates a bridge methods for an annotated method there will be two bridge methods generated by this plugin, one delegating to the original method and one to the bridge method.
Would it be possible to add a duplicate filter or skip bridge method target methods?
The text was updated successfully, but these errors were encountered: