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

java/lang/annotation/Missing/MissingTest.java: Expected exception not thrown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:

      Description

      JDK9, VM PIT, win32

      elapsed time (seconds): 1.312
      ----------configuration:(0/0)----------
      ----------System.out:(1/19)----------
      interface Missing
      ----------System.err:(18/1202)----------
      Error: Did not get an exception reading annotations on class B
      Annotations found: [@MissingWrapper(value=@Missing()), @Marker()]
      Error: Did not get an exception reading annotations on methodpublic void D.method1(java.lang.Object)
      Annotations found: [[Ljava.lang.annotation.Annotation;@1ad701e]
      java.lang.RuntimeException: Expected exception not thrown
      at MissingTest.testMethodGetDefaultValue(MissingTest.java:121)
      at MissingTest.main(MissingTest.java:149)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:537)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Activity

        Hide
        darcy Joe Darcy added a comment -
        The test in question has not changed for months and does not have a history of failures in Mach 5.

        Given that this and another annotation-related test are listed as failing in the HotSpot pit, my conclusion is there is either some new bug in HotSpot handling of annotations or the test environment is improper or misconfigured. (The two test failures could be explained by the @build, @compile, and @clean jtreg directives not having the proper effects.)

        Moving to the HotSpot component.
        Show
        darcy Joe Darcy added a comment - The test in question has not changed for months and does not have a history of failures in Mach 5. Given that this and another annotation-related test are listed as failing in the HotSpot pit, my conclusion is there is either some new bug in HotSpot handling of annotations or the test environment is improper or misconfigured. (The two test failures could be explained by the @build, @compile, and @clean jtreg directives not having the proper effects.) Moving to the HotSpot component.
        Hide
        coleenp Coleen Phillimore added a comment -
        I can't seem to reproduce this:
        https://jdash.se.oracle.com/rbt/rbt-coleen.phillimore-9missing-20161128-2316-28709
        so possibly a test interaction problem. The test has classes called A, B, C, D. Could these classes have interacted with other tests? Should investigate for jdk10.
        Show
        coleenp Coleen Phillimore added a comment - I can't seem to reproduce this: https://jdash.se.oracle.com/rbt/rbt-coleen.phillimore-9missing-20161128-2316-28709 so possibly a test interaction problem. The test has classes called A, B, C, D. Could these classes have interacted with other tests? Should investigate for jdk10.
        Hide
        ctornqvi Christian Tornqvist added a comment -
        Closing as CNR based on Coleen's comment.
        Show
        ctornqvi Christian Tornqvist added a comment - Closing as CNR based on Coleen's comment.

          People

          • Assignee:
            coleenp Coleen Phillimore
            Reporter:
            dfazunen Dmitry Fazunenko
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: