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

Test `ADatagramSocket.java` missing /othervm from @run tag

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b28

      Backports

        Description

        The test `test/jdk/java/net/DatagramSocket/SetDatagramSocketImplFactory/ADatagramSocket.java` is missing /othervm from its @run jtreg test tag, which risks polluting other tests that runs in that VM.

        Currently, any test that runs without `/othervm` after this test would find the `DatagramSocketImpl` factory created by this test, and therefore any call made to new `DatagramSocket()` would return/use a `NetMulticastSocket` instead of `DatagramSocketAdaptor`. This could make tests that create `DatagramSocket/MulticastSocket` fail intermittently in unexplainable ways. Adding in /othervm to the @run tag will avoid this problem.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pconcannon Patrick Concannon
                Reporter:
                pconcannon Patrick Concannon
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: