Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 44214 invoked from network); 19 Jun 2006 12:32:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 12:32:38 -0000 Received: (qmail 84650 invoked by uid 500); 19 Jun 2006 12:32:31 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 84607 invoked by uid 500); 19 Jun 2006 12:32:30 -0000 Mailing-List: contact harmony-dev-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-dev@incubator.apache.org Received: (qmail 84595 invoked by uid 99); 19 Jun 2006 12:32:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 05:32:30 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.154 is neither permitted nor denied by domain of paulex.yang@gmail.com) Received: from [202.81.18.154] (HELO ausmtp05.au.ibm.com) (202.81.18.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 05:32:28 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp05.au.ibm.com (8.13.6/8.13.6) with ESMTP id k5JCZ5fj8073256 for ; Mon, 19 Jun 2006 22:35:07 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k5JCN7oo122028 for ; Mon, 19 Jun 2006 22:35:14 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5J6lkWP012610 for ; Mon, 19 Jun 2006 16:47:46 +1000 Received: from d23m0011.cn.ibm.com (d23m0011.cn.ibm.com [9.181.32.74]) by d23av02.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5J6ligI012291 for ; Mon, 19 Jun 2006 16:47:45 +1000 Received: from [127.0.0.1] ([9.181.106.114]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006061914482191-4208 ; Mon, 19 Jun 2006 14:48:21 +0800 Message-ID: <449648B3.40507@gmail.com> Date: Mon, 19 Jun 2006 14:48:19 +0800 From: Paulex Yang User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: [classlib][luni-util]Scanner completion(was Re: [jira] Closed: (HARMONY-567) [classlib][luni]java.util.Scanner constructors not implemented) References: <31945486.1150278153849.JavaMail.jira@brutus> <4496416F.5030208@gmail.com> In-Reply-To: <4496416F.5030208@gmail.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 19/06/2006 14:48:21, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 19/06/2006 14:48:28, Serialize complete at 19/06/2006 14:48:28 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ah, thank you, Richard, I modified the topic a little to make it more clear. You are right that I'm not working on Scanner, I created two patches related to Scanner just because some other modules needed a skeleton to compile. I'm a little distracted in NIO stuffs, further I owed some parts of j.u.Formatter(I'm frustrating on the facts that RI shows different behavior on java.text.DateFormat/NumberFormat and Formatter.format() for number/date, so it's more complex than I expected). So please feel free to complete the Scanner implementation, thank you. And please shout if you need help because it is a big stuff. BTW, I have an issue related to Scanner here, I had a look at the Scanner's document before, and I found there is some possibilities to make its implementation easier: Scanner has a match() method, which returns a MatchResult for last scanning operation, further, the MatchResult contains the actual regular expressions Scanner used for various type(digit, decimal, etc) and can be got by Matcher.pattern().toString(), so I wonder if it is permitted in legal for us to use RI's regular express directly in Harmony's Scanner? If so, it is much easier to make Scanner compatible with RI. How do you(and others) think about it? Richard Liang wrote: > Hello Paulex, > > I'm implementing some SMALL methods for j.u.Scanner, and I find > there's a defect in its Constructor. It seems that you're focusing on > NIO development. Do you still working on j.u.Scanner? If no, I'd like > to provide patch for it. :-) > > Richard. > > [1] http://issues.apache.org/jira/browse/HARMONY-611 > > Mikhail Loenko (JIRA) wrote: >> [ http://issues.apache.org/jira/browse/HARMONY-567?page=all ] >> Mikhail Loenko closed HARMONY-567: >> ---------------------------------- >> >> >> verified by Paulex >> >> >>> [classlib][luni]java.util.Scanner constructors not implemented >>> -------------------------------------------------------------- >>> >>> Key: HARMONY-567 >>> URL: http://issues.apache.org/jira/browse/HARMONY-567 >>> Project: Harmony >>> Type: Bug >>> >> >> >>> Components: Classlib >>> Reporter: Paulex Yang >>> Assignee: Mikhail Loenko >>> Priority: Minor >>> Attachments: 01.harmony567.diff, 02.harmony567.sh, ScannerTest.java >>> >>> Because of its big size, I'll try to implement Scanner in several >>> steps, one JIRA/patch per step. Here goes the first one except the >>> skeleton, the implementation of constructors. I'll attach patch soon. >>> >> >> > -- Paulex Yang China Software Development Lab IBM --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org