Suggestion: write out MethodParameters attribute in JvmtiClassFileReconstituter.cpp's write_method_info()

Alan Bateman Alan.Bateman at oracle.com
Tue Mar 10 08:11:14 UTC 2020


On 10/03/2020 02:50, zrlw at sina.com wrote:
> Hello,
> The class file bytes will be sent to a javaagent which registered ClassFileTransformer functions, but the retransformed classes bytes doesn't have MethodParameters attributes if the javaagent calling Instrumentation.retransformClasses, it will cause Mybatis can't get parameter names if not set parameter annotation @Param and throw BingExceptions if the sql statements using parameter names instead of arg0,arg1,...I suggest that write out method parameters attribute in JvmtiClassFileReconstituter.cpp's write_method_info(),https://github.com/jmockit/jmockit1/issues/659
> Regards,
> Lao Wei.
Can you, or one of the JMockit maintainers, bring a test case to 
serviceability-dev for discussion? I can see how there may be issues 
there but having a reproducer would help with a bug report and discussion.

-Alan.


More information about the jdk-dev mailing list