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

defmeth tests can hide failures

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b18

      Description

      porting defmeth tests, I noticed that they hide some exceptions. for example, any exceptions thrown by vm.runtime.defmeth.shared.Utils.retransformClass / redefineClass (or any other methods called from prepare) will be wrapped by InvocationTargetException and later ignored in DefMethTest, so we fail before test code is executed, nobody calls DefMethTest::addFailureCount, as a result tests are reported as passed.


        Attachments

          Activity

            People

            Assignee:
            hseigel Harold Seigel
            Reporter:
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: