--- a/jdk/test/java/nio/channels/DatagramChannel/SocketOptionTests.java Wed Feb 11 13:16:53 2009 +0000
+++ b/jdk/test/java/nio/channels/DatagramChannel/SocketOptionTests.java Sun Feb 15 12:25:54 2009 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2007-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -49,7 +49,7 @@
DatagramChannel dc = DatagramChannel.open();
// check supported options
- Set<SocketOption<?>> options = dc.options();
+ Set<SocketOption<?>> options = dc.supportedOptions();
List<? extends SocketOption<?>> expected = Arrays.asList(SO_SNDBUF, SO_RCVBUF,
SO_REUSEADDR, SO_BROADCAST, IP_TOS, IP_MULTICAST_IF, IP_MULTICAST_TTL,
IP_MULTICAST_LOOP);