-
Bug
-
Resolution: Fixed
-
P3
-
8, 15
-
b09
This is a bug report that was sent to jdk-dev, it links to a JMockit issue with more info.
https://mail.openjdk.java.net/pipermail/jdk-dev/2020-March/004042.html
Attached is the reproducer from the submitter. It needs Apache Maven to run.
$ cd jmockit-mybatis-bindingexception-sample
$ mvn test
:
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.882 s <<< FAILURE! - in com.example.mybatis_h2_sample.AppTestSuit
[ERROR] testGetUsers(com.example.mybatis_h2_sample.AppTestExceptionIfRunJUnitAfterTestOk) Time elapsed: 0.023 s <<< ERROR!
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'firstName' not found. Available parameters are [arg1, arg0, param1, param2]
at com.example.mybatis_h2_sample.AppTestExceptionIfRunJUnitAfterTestOk.testGetUsers(AppTestExceptionIfRunJUnitAfterTestOk.java:45)
Caused by: org.apache.ibatis.binding.BindingException: Parameter 'firstName' not found. Available parameters are [arg1, arg0, param1, param2]
at com.example.mybatis_h2_sample.AppTestExceptionIfRunJUnitAfterTestOk.testGetUsers(AppTestExceptionIfRunJUnitAfterTestOk.java:45)
https://mail.openjdk.java.net/pipermail/jdk-dev/2020-March/004042.html
Attached is the reproducer from the submitter. It needs Apache Maven to run.
$ cd jmockit-mybatis-bindingexception-sample
$ mvn test
:
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.882 s <<< FAILURE! - in com.example.mybatis_h2_sample.AppTestSuit
[ERROR] testGetUsers(com.example.mybatis_h2_sample.AppTestExceptionIfRunJUnitAfterTestOk) Time elapsed: 0.023 s <<< ERROR!
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'firstName' not found. Available parameters are [arg1, arg0, param1, param2]
at com.example.mybatis_h2_sample.AppTestExceptionIfRunJUnitAfterTestOk.testGetUsers(AppTestExceptionIfRunJUnitAfterTestOk.java:45)
Caused by: org.apache.ibatis.binding.BindingException: Parameter 'firstName' not found. Available parameters are [arg1, arg0, param1, param2]
at com.example.mybatis_h2_sample.AppTestExceptionIfRunJUnitAfterTestOk.testGetUsers(AppTestExceptionIfRunJUnitAfterTestOk.java:45)
- duplicates
-
JDK-8168623 Byte array that is presented to a Java agent does not preserve parameter names and modifiers.
-
- Closed
-
-
JDK-8241968 Instrumentation.retransformClasses(Class) drop MethodParameters attribute
-
- Closed
-
-
JDK-8241987 RetransformClass does not know about MethodParameters attribute
-
- Closed
-
- relates to
-
JDK-8281243 Test java/lang/instrument/RetransformWithMethodParametersTest.java is failing
-
- Resolved
-
-
JDK-8281268 Resolve duplication of test ClassTransformer class
-
- Resolved
-
(2 links to)