harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r1033407 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/DatagramSocket.java
Date Wed, 10 Nov 2010 10:24:47 GMT
Author: tellison
Date: Wed Nov 10 10:24:46 2010
New Revision: 1033407

URL: http://svn.apache.org/viewvc?rev=1033407&view=rev
Log:
Fix for HARMONY-6367 ([classlib] Some Methods doesn't have security Permissions check as compared
to SUN JDK)
Add further check for accepting a datagram connection.


Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/DatagramSocket.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/DatagramSocket.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/DatagramSocket.java?rev=1033407&r1=1033406&r2=1033407&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/DatagramSocket.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/net/DatagramSocket.java
Wed Nov 10 10:24:46 2010
@@ -163,6 +163,7 @@ public class DatagramSocket {
                     security.checkMulticast(anAddress);
                 } else {
                     security.checkConnect(anAddress.getHostName(), aPort);
+                    security.checkAccept(anAddress.getHostName(), aPort);
                 }
             }
 



Mime
View raw message