From commits-return-60810-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Tue Nov 03 16:47:33 2009 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 19234 invoked from network); 3 Nov 2009 16:47:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Nov 2009 16:47:33 -0000 Received: (qmail 70671 invoked by uid 500); 3 Nov 2009 16:47:33 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 70632 invoked by uid 500); 3 Nov 2009 16:47:33 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 70623 invoked by uid 99); 3 Nov 2009 16:47:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2009 16:47:33 +0000 X-ASF-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2009 16:47:30 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 45CAA2388962; Tue, 3 Nov 2009 16:47:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r832471 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java Date: Tue, 03 Nov 2009 16:47:10 -0000 To: commits@harmony.apache.org From: tellison@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091103164710.45CAA2388962@eris.apache.org> Author: tellison Date: Tue Nov 3 16:47:09 2009 New Revision: 832471 URL: http://svn.apache.org/viewvc?rev=832471&view=rev Log: Part of HARMONY-6367 ([classlib] Some Methods doesn't have security Permissions check as compared to SUN JDK) Ensure that there is a checkConnect test during SocketPermission#equals(Object) Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java?rev=832471&r1=832470&r2=832471&view=diff ============================================================================== --- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java (original) +++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java Tue Nov 3 16:47:09 2009 @@ -512,6 +512,10 @@ return InetAddress.LOOPBACK.getHostAddress(); } if (isHostName(host)) { + SecurityManager sm = System.getSecurityManager(); + if (sm != null) { + sm.checkConnect(host, -1); + } return lookupHostByName(host).getHostAddress(); } return host;