Commit 68dfecb3 by Michael Koch Committed by Michael Koch

2003-03-02 Michael Koch <konqueror@gmx.de>

	* java/net/HttpURLConnection.java
	(HTTP_SERVER_ERROR): Deprecated.
	* java/net/MulticastSocket.java
	(send): Replaced checkMulticast with appropriate checkPermission call,
	deprecated.
	* java/net/URLDecoder.java
	(decode): Deprecated.
	* java/net/URLEncoder.java
	(encode): Deprecated.

From-SVN: r63679
parent b45e9837
2003-03-02 Michael Koch <konqueror@gmx.de> 2003-03-02 Michael Koch <konqueror@gmx.de>
* java/net/HttpURLConnection.java
(HTTP_SERVER_ERROR): Deprecated.
* java/net/MulticastSocket.java
(send): Replaced checkMulticast with appropriate checkPermission call,
deprecated.
* java/net/URLDecoder.java
(decode): Deprecated.
* java/net/URLEncoder.java
(encode): Deprecated.
2003-03-02 Michael Koch <konqueror@gmx.de>
* javax/swing/text/Caret.java * javax/swing/text/Caret.java
(getMagicCaretPosition): Fixed typo in method name. (getMagicCaretPosition): Fixed typo in method name.
* javax/swing/text/DefaultCaret.java * javax/swing/text/DefaultCaret.java
......
...@@ -242,6 +242,8 @@ public abstract class HttpURLConnection extends URLConnection ...@@ -242,6 +242,8 @@ public abstract class HttpURLConnection extends URLConnection
/** /**
* This error code indicates that some sort of server error occurred. * This error code indicates that some sort of server error occurred.
*
* @deprecated
*/ */
public static final int HTTP_SERVER_ERROR = 500; public static final int HTTP_SERVER_ERROR = 500;
......
...@@ -426,17 +426,21 @@ public class MulticastSocket extends DatagramSocket ...@@ -426,17 +426,21 @@ public class MulticastSocket extends DatagramSocket
* @exception IOException If an error occurs * @exception IOException If an error occurs
* @exception SecurityException If a security manager exists and its * @exception SecurityException If a security manager exists and its
* checkConnect or checkMulticast method doesn't allow the operation * checkConnect or checkMulticast method doesn't allow the operation
*
* @deprecated
*/ */
public synchronized void send(DatagramPacket p, byte ttl) throws IOException public synchronized void send(DatagramPacket p, byte ttl) throws IOException
{ {
SecurityManager s = System.getSecurityManager(); SecurityManager s = System.getSecurityManager();
if (s != null) if (s != null)
{ {
InetAddress addr = p.getAddress(); InetAddress addr = p.getAddress();
if (addr.isMulticastAddress()) if (addr.isMulticastAddress())
s.checkMulticast(addr, ttl); s.checkPermission (new SocketPermission
else (addr.getHostName () + p.getPort (),
s.checkConnect(addr.getHostAddress(), p.getPort()); "accept,connect"));
else
s.checkConnect(addr.getHostAddress(), p.getPort());
} }
int oldttl = impl.getTimeToLive(); int oldttl = impl.getTimeToLive();
......
...@@ -77,6 +77,8 @@ public class URLDecoder ...@@ -77,6 +77,8 @@ public class URLDecoder
* @param s the String to convert * @param s the String to convert
* *
* @return the converted String * @return the converted String
*
* @deprecated
*/ */
public static String decode(String s) public static String decode(String s)
{ {
......
...@@ -71,6 +71,8 @@ public class URLEncoder ...@@ -71,6 +71,8 @@ public class URLEncoder
* @param s The String to convert * @param s The String to convert
* *
* @return The converted String * @return The converted String
*
* @deprecated
*/ */
public static String encode(String s) public static String encode(String s)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment