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

zrlw at zrlw at
Tue Mar 10 02:50:19 UTC 2020

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(),
Lao Wei.

More information about the jdk-dev mailing list