test/jdk/java/net/MulticastSocket/UnreferencedMulticastSockets.java
changeset 54811 9db7c0f561a6
parent 54770 62b6e7587b1f
child 55047 3131927311ee
equal deleted inserted replaced
54810:258170da6d3a 54811:9db7c0f561a6
   105             }
   105             }
   106         }
   106         }
   107     }
   107     }
   108 
   108 
   109     public static void main(String args[]) throws Exception {
   109     public static void main(String args[]) throws Exception {
   110         IPSupport.skipIfCurrentConfigurationIsInvalid();
   110         IPSupport.throwSkippedExceptionIfNonOperational();
   111 
   111 
   112         // Create and close a MulticastSocket to warm up the FD count for side effects.
   112         // Create and close a MulticastSocket to warm up the FD count for side effects.
   113         try (MulticastSocket s = new MulticastSocket(0)) {
   113         try (MulticastSocket s = new MulticastSocket(0)) {
   114             // no-op; close immediately
   114             // no-op; close immediately
   115             s.getLocalPort();   // no-op
   115             s.getLocalPort();   // no-op