-
Notifications
You must be signed in to change notification settings - Fork 1.2k
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Javassist does not handle interface duplication method correctly #1384
Comments
I'm not sure whether it's a good practice to support this scenario, is there an actual situation you encountered? |
Probably not a good coding practice for this case. |
@s2marine Thank you for your feedback. This issue does indeed exist here. One solution is to do logical deduplication in the method |
Describe the bug
Javassist reports an error when encountering duplicate method: "duplicate method".
When I change default implementation of the proxy to Bytebuddy, the service starts successfully.
Expected behavior
Duplicate methods should only generate one method.
Actual behavior
Steps to reproduce
Minimal yet complete reproducer code (or GitHub URL to code)
Environment
java -version
): 1.8.0_392uname -a
):Linux archlinux-r9000p-s2marine 6.6.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 21 Dec 2023 19:01:01 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: