Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 12549 invoked from network); 7 Mar 2006 02:11:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Mar 2006 02:11:46 -0000 Received: (qmail 65948 invoked by uid 500); 7 Mar 2006 02:11:34 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 65895 invoked by uid 500); 7 Mar 2006 02:11:34 -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 65884 invoked by uid 99); 7 Mar 2006 02:11:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2006 18:11:34 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.152 is neither permitted nor denied by domain of richard.liangyx@gmail.com) Received: from [202.81.18.152] (HELO ausmtp04.au.ibm.com) (202.81.18.152) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2006 18:11:33 -0800 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp04.au.ibm.com (8.12.10/8.13.5) with ESMTP id k272IXTE264690 for ; Tue, 7 Mar 2006 13:18:33 +1100 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 k272EP8f213806 for ; Tue, 7 Mar 2006 13:14:25 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11/8.13.3) with ESMTP id k272B699012710 for ; Tue, 7 Mar 2006 13:11:06 +1100 Received: from d23m0011.cn.ibm.com (d23m0011.cn.ibm.com [9.181.32.74]) by d23av02.au.ibm.com (8.12.11/8.12.11) with ESMTP id k272B516012656 for ; Tue, 7 Mar 2006 13:11:05 +1100 Received: from [127.0.0.1] ([9.181.107.53]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.53HF294) with ESMTP id 2006030710110269-8006 ; Tue, 7 Mar 2006 10:11:02 +0800 Message-ID: <440CEB82.5020204@gmail.com> Date: Tue, 07 Mar 2006 10:10:10 +0800 From: Richard Liang Organization: IBM China Software Development Lab User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: J2SE 5 Plan / Roadmap References: <002401c64188$f3dc3310$1101a8c0@LITTLEGUY> In-Reply-To: <002401c64188$f3dc3310$1101a8c0@LITTLEGUY> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.53HF294 | January 28, 2005) at 07/03/2006 10:11:02, Serialize by Router on D23M0011/23/M/IBM(Release 6.53HF294 | January 28, 2005) at 07/03/2006 10:11:05, Serialize complete at 07/03/2006 10:11:05 Content-Type: multipart/alternative; boundary="------------080705060502010107060206" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------080705060502010107060206 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Nathan Beyer wrote: > Maybe I didn't read this article right, but my understanding is that in Java > 5, char or at least an array of char is considered a UTF-16 sequence: > http://java.sun.com/developer/technicalArticles/Intl/Supplementary/ > Yes, Nathan. Char sequence and char array are considered as UTF-16 sequence. But as a data type, 'char' cannot be UTF-16. How can you assign a char as a Unicode character U+10FFFF? > Here's the important quote from this article: > > "In the end, the decision was for a tiered approach: > * Use the primitive type int to represent code points in low-level APIs, > such as the static methods of the Character class. > * Interpret char sequences in all forms as UTF-16 sequences, and promote > their use in higher-level APIs. > * Provide APIs to easily convert between various char and code > point-based representations." > > > > -----Original Message----- > From: Richard Liang [mailto:richard.liangyx@gmail.com] > Sent: Monday, March 06, 2006 7:34 PM > To: harmony-dev@incubator.apache.org > Subject: Re: J2SE 5 Plan / Roadmap > > Nathan Beyer wrote: > >> Here's a good link with a summary of some of the new features: >> http://java.sun.com/developer/technicalArticles/releases/j2se15/ >> >> One of the major pieces that I missed is uplifting everything to support >> > the > >> Unicode 4.0 updates; char is now UTF-16 encoded value, etc. >> >> > 'char' cannot be UTF-16 encoded value :-) As you know, char is 16-bit > value in Java. However, UTF-16 encoding algorithm is: > For characters in range U+0000 - U+FFFF (excluding U+D800 - U+DFFF) just > use the same unsigned 16-bit numeric value as their UTF-16 encoded > value; For example, the UTF-16 encoded value for character '\u4E2D' is > 0x4E2D. > For characters in U+10000 - U+10FFFF use a surrogate pair as their > UTF-16 encoded value. For example, the UTF-16 encoded value for > character U+10000 is a 32-bit value 0xD800 0xDC00. > > Please refer to "Glossary of Unicode Terms" http://www.unicode.org/glossary/ > > Also please forgive my prolixity :-) > >> >> >>> -----Original Message----- >>> From: Nathan Beyer [mailto:nbeyer@kc.rr.com] >>> Sent: Friday, March 03, 2006 6:19 PM >>> To: harmony-dev@incubator.apache.org >>> Subject: RE: J2SE 5 Plan / Roadmap >>> >>> This can probably be split up into a couple pieces; here are some of my >>> thoughts. >>> >>> * JLS3 bytecode support - Can the current VM load JLS3 class files? If >>> not, >>> what's missing (besides the major.minor version header)? Can some >>> > features > >>> be enabled/uplifted to allow APIs to move forward? Since generics are a >>> compile-time feature, can code begin using generics by just allowing the >>> JLS3 major.minor version? In any case, this probably breaks down into a >>> couple topics: generics, annotations, enums, return-value-covariance and >>> others. >>> >>> * Java 5 APIs [NEW] - Most of the brand-new APIs have been identified >>> (java.lang.management, etc) and some are already being checked in. It >>> seems >>> like there's already a undocumented process here, which is to uplift and >>> build any APIs to the Java 5 specification and leaving out any Java >>> 5-specific language features, like generification, enums and annotations. >>> >>> * Java 5 APIs [Generfication] - Once we can allow code with generics to >>> > be > >>> compiled and loaded, then we could begin a phase of uplifting all of the >>> newly generified APIs (Collections, etc). >>> >>> * Java 5 APIs [Annotations] - I suspect, but could be wrong, that >>> Annotations support will be more difficult to implement in the VM, as >>> there >>> is some runtime support. When this is available, another phase can be >>> initiated to uplift all of the APIs with the appropriate Annotations >>> (@deprecated, @override, etc). >>> >>> I'm not too familiar with the JAPI tool, but if Stuart can get the >>> > Harmony > >>> reports to run against the Java 5 specifications, I this would provide an >>> enormous boost in the arena of new Java 5 APIs. Does JAPI support JLS3 >>> features, like generics, annotations and enum checking? >>> >>> Those are some of my thoughts at least. >>> >>> BTW: JLS3 == Java Language Specification, 3rd Edition >>> >>> -Nathan >>> >>> >>> >>>> -----Original Message----- >>>> From: Geir Magnusson Jr [mailto:geir@pobox.com] >>>> Sent: Friday, March 03, 2006 9:40 AM >>>> To: harmony-dev@incubator.apache.org >>>> Subject: J2SE 5 Plan / Roadmap >>>> >>>> We should probably start thinking about how we'll move forward. There >>>> have been a few casual conversations, but lets start getting some things >>>> down here. >>>> >>>> >> >> > > > -- Richard Liang China Software Development Lab, IBM --------------080705060502010107060206--