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

        dfazunen Dmitry Fazunenko (Inactive) created issue -
        lancea Lance Andersen made changes -
        Field Original Value New Value
        Assignee Joe Darcy [ darcy ]
        lancea Lance Andersen made changes -
        Status New [ 10000 ] Open [ 1 ]
        darcy Joe Darcy made changes -
        Component/s hotspot [ 10304 ]
        Component/s core-libs [ 10300 ]
        darcy Joe Darcy made changes -
        Subcomponent java.lang [ 190 ]
        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.
        darcy Joe Darcy made changes -
        Assignee Joe Darcy [ darcy ]
        ctornqvi Christian Tornqvist made changes -
        Status Open [ 1 ] New [ 10000 ]
        ctornqvi Christian Tornqvist made changes -
        Subcomponent runtime [ 192 ]
        jwilhelm Jesper Wilhelmsson made changes -
        Labels pit hs-nightly pit
        ctornqvi Christian Tornqvist made changes -
        Fix Version/s 9 [ 14949 ]
        ctornqvi Christian Tornqvist made changes -
        Priority P3 [ 3 ] P2 [ 2 ]
        ctornqvi Christian Tornqvist made changes -
        Status New [ 10000 ] Open [ 1 ]
        ctornqvi Christian Tornqvist made changes -
        Assignee Coleen Phillimore [ coleenp ]
        coleenp Coleen Phillimore made changes -
        Status Open [ 1 ] New [ 10000 ]
        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.
        coleenp Coleen Phillimore made changes -
        Fix Version/s 10 [ 16302 ]
        Fix Version/s 9 [ 14949 ]
        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.
        ctornqvi Christian Tornqvist made changes -
        Status New [ 10000 ] Closed [ 6 ]
        Resolution Cannot Reproduce [ 5 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: