Suggestion: write out MethodParameters attribute in JvmtiClassFileReconstituter.cpp's write_method_info()
zrlw at sina.com
zrlw at sina.com
Tue Mar 10 02:50:19 UTC 2020
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.
More information about the jdk-dev
mailing list