Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 49048 invoked from network); 21 Feb 2006 00:42:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Feb 2006 00:42:52 -0000 Received: (qmail 2744 invoked by uid 500); 21 Feb 2006 00:42:49 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 2672 invoked by uid 500); 21 Feb 2006 00:42:49 -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 2651 invoked by uid 99); 21 Feb 2006 00:42:49 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 16:42:48 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id B56ECDD for ; Tue, 21 Feb 2006 01:42:27 +0100 (CET) Message-ID: <1271058728.1140482547699.JavaMail.jira@ajax.apache.org> Date: Tue, 21 Feb 2006 01:42:27 +0100 (CET) From: "Nathan Beyer (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Commented: (HARMONY-103) java.lang.StringBuilder Implementation for LUNI In-Reply-To: <1211014669.1140379116215.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-103?page=comments#action_12367113 ] Nathan Beyer commented on HARMONY-103: -------------------------------------- Well, I've figured the compile issue I was having. The StringBuilder API assumes Java 5 covariance capabilities, which is how it uplifts the methods in Appendable to be StringBuilder. I logged a bug with the Eclipse JDT and it was a bug in the Java 5 compiler that allowed covariance to be used when Java 1.4 bytecode was requested. Here's the bug report, which has already been fixed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=128560. As such, if we need to continue using a Java 1.4 compliant compiler, then we'll either need to remove the "implements Appendable" or change the return types to "Appendable". Since the end goal would be to get to the proper method signature, I would propose just removing the "implements Appendable" until we can move to a Java 5 compiler. > java.lang.StringBuilder Implementation for LUNI > ----------------------------------------------- > > Key: HARMONY-103 > URL: http://issues.apache.org/jira/browse/HARMONY-103 > Project: Harmony > Type: New Feature > Components: Classlib > Reporter: Nathan Beyer > Attachments: StringBuilder.java, StringBuilderTest.java > > This bug is for submitting an implementation of the java.lang.StringBuilder to the LUNI module of classlib. The implementation and class definition is based on the specification at http://java.sun.com/j2se/1.5.0/docs/api/java/lang/StringBuilder.html. > The implementation is not complete, there are a few method that are either incomplete or not implemented. All of these are related to the Unicode Code Point support, as defined by Java 5. As for the rest of the implementation, there are probably a number of optimization points, but the focus was to complete the functionality and make it compatible with various Java 5 runtimes. > Additionally, I had a problem with compiling this class in Eclipse 3.1.2. When I set the compiler to Java 1.4 compliance level, the methods which implement the Appendable interface cause compilation errors. When I set the compiler to Java 5.0 compliance with Java 1.4 .class file compatability and Java 1.4 source compatibility, the class compiled fine. I'm not sure if this is quirk of the JDT compiler or what, but I'm going to do some investigation and testing to see if I can isolate it. -- 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