Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 12597 invoked from network); 22 Sep 2006 01:56:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2006 01:56:04 -0000 Received: (qmail 19731 invoked by uid 500); 22 Sep 2006 01:56:04 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 19703 invoked by uid 500); 22 Sep 2006 01:56:04 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 19690 invoked by uid 99); 22 Sep 2006 01:56:04 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Sep 2006 18:56:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:39160] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id BC/C4-06791-3B243154 for ; Thu, 21 Sep 2006 18:56:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F30514190C8 for ; Fri, 22 Sep 2006 01:52:23 +0000 (GMT) Message-ID: <27567467.1158889943992.JavaMail.jira@brutus> Date: Thu, 21 Sep 2006 18:52:23 -0700 (PDT) From: "Paulex Yang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Resolved: (HARMONY-1462) [classlib][luni] SocketPermission does not accept '*' as a port number In-Reply-To: <18417251.1158237562386.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1462?page=all ] Paulex Yang resolved HARMONY-1462. ---------------------------------- Resolution: Fixed Robert, patch applied at revision r, thanks a lot for this enhancement. Mikhail, please verify the problem is resolved as you expected, thanks a lot. > [classlib][luni] SocketPermission does not accept '*' as a port number > ---------------------------------------------------------------------- > > Key: HARMONY-1462 > URL: http://issues.apache.org/jira/browse/HARMONY-1462 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Win XP > Reporter: Mikhail Markov > Assigned To: Paulex Yang > Attachments: patch.diff > > > Although API specification does not explicitly allow '*' usage as a port number for SocketPermission, RI accept '*' as a port number (representing the full port range from 0 to 65535). > ============== Test.java ================= > import java.net.SocketPermission; > public class Test { > public static void main(String[] args) throws Exception { > try { > SocketPermission sp = new SocketPermission("localhost:*", "listen"); > System.out.println("'*' for port is ok."); > } catch (IllegalArgumentException iae) { > System.out.println("'*' for port is not ok: " + iae); > } > } > } > ====================================== > Output on RI: > '*' for port is ok. > Output on Harmony: > '*' for port is not ok: java.lang.IllegalArgumentException: Invalid port number specified -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira