Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8240908

RetransformClass does not know about MethodParameters attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 19
    • 8, 15
    • hotspot
    • b09

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              amenkov Alex Menkov
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: