8268776: Test ADatagramSocket.java
missing /othervm from @run tag
#4493
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theDatagramSocketImpl
factory created by this test, and therefore any call made to newDatagramSocket()
would return/use aNetMulticastSocket
instead ofDatagramSocketAdaptor
. This could make tests that createDatagramSocket/MulticastSocket
fail intermittently in unexplainable ways. Adding in/othervm
to the @run tag will avoid this problem.Kind regards,
Patrick
Progress
Issue
ADatagramSocket.java
missing /othervm from @run tagReviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4493/head:pull/4493
$ git checkout pull/4493
Update a local copy of the PR:
$ git checkout pull/4493
$ git pull https://git.openjdk.java.net/jdk pull/4493/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4493
View PR using the GUI difftool:
$ git pr show -t 4493
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4493.diff