On Wed, 16 Jun 2021 10:42:56 GMT, Patrick Concannon <pconcan...@openjdk.org> wrote:
> Hi, > > Could someone please review my change to the test > `test/jdk/java/net/DatagramSocket/SetDatagramSocketImplFactory/ADatagramSocket.java`? > The test is missing `/othervm` from its @run jtreg test tag, which risks > polluting other tests that run 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. > > Kind regards, > Patrick Marked as reviewed by dfuchs (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk17/pull/75