Open s2marine opened 11 months ago
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. It’s just that I think as a framework, it may need to support the modes which supported by JDK.
@s2marine Thank you for your feedback. This issue does indeed exist here. One solution is to do logical deduplication in the method com.alipay.sofa.rpc.proxy.javassist.JavassistProxy#createMethod
.If you'd like to fix it, welcome to take part in contributing.
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