classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: FYI: URLConnection synchronization


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: URLConnection synchronization
Date: 28 Sep 2004 15:44:50 -0600

It seems to me that if URLConnection.getFileNameMap is synchronized,
then URLConnection.setFileNameMap ought to be as well.

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>
        * java/net/URLConnection.java (setFileNameMap): Now synchronized.

Index: java/net/URLConnection.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/URLConnection.java,v
retrieving revision 1.31
diff -u -r1.31 URLConnection.java
--- java/net/URLConnection.java 28 Sep 2004 09:19:45 -0000 1.31
+++ java/net/URLConnection.java 28 Sep 2004 21:46:16 -0000
@@ -939,7 +939,7 @@
    *
    * @since 1.2
    */
-  public static void setFileNameMap(FileNameMap map)
+  public static synchronized void setFileNameMap(FileNameMap map)
   {
     // Throw an exception if an extant security manager precludes
     // setting the factory.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]