Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 49014 invoked from network); 20 Apr 2006 06:16:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 06:16:31 -0000 Received: (qmail 20982 invoked by uid 500); 20 Apr 2006 06:16:19 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 20930 invoked by uid 500); 20 Apr 2006 06:16:18 -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 20919 invoked by uid 99); 20 Apr 2006 06:16:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 23:16:18 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mloenko@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nproxy.gmail.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 23:16:16 -0700 Received: by nproxy.gmail.com with SMTP id p48so36304nfa for ; Wed, 19 Apr 2006 23:15:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ehIMEDUPNdTsx/7x2Zf0NDBxUkEPmHdmtbU/0ihwytk/Dn9BoUJl0hpmbklAHYgLTKsh5EGjcXbHaOhkBgbCJoNr8EsAbA2uDKR3Dq2mzE0uPqAJaVK5erVoruz8NLpI+4CumEZVmEi4f+0B4rajGENL9n++sQpRXhBGfbaPE6c= Received: by 10.49.61.4 with SMTP id o4mr120186nfk; Wed, 19 Apr 2006 23:15:54 -0700 (PDT) Received: by 10.49.6.5 with HTTP; Wed, 19 Apr 2006 23:15:54 -0700 (PDT) Message-ID: <906dd82e0604192315j2dccffcbh4c561418c7bb65c0@mail.gmail.com> Date: Thu, 20 Apr 2006 13:15:54 +0700 From: "Mikhail Loenko" To: harmony-dev@incubator.apache.org Subject: Re: [jira] Assigned: (HARMONY-376) [classlib][luni] Generics uplift for java.lang.String and java.util.Comparator In-Reply-To: <002a01c66428$c463ebb0$1201a8c0@LITTLEGUY> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6694B22B6436BC43B429958787E454984DDCD5@mssmsx402nb> <002a01c66428$c463ebb0$1201a8c0@LITTLEGUY> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Nathan This test: public class test { public static void main(String[] args) throws Exception { String s1 =3D "string 1"; Object o =3D s1; System.out.println(s1.compareTo(o)); s1.compareTo(new Object()); } } once compiled with javac 1.4 runs the same way on all: RI 1.5, RI 1.4, and Harmony. Though it can't be compiled on javac 1.5 So compatibility is OK in this case, thanks for the patch Thanks, Mikhail 2006/4/20, Nathan Beyer : > I posted another patch to fix the compile error in CompositeName, but is > that the right thing to do? When I compiled the code against a RI Java 5 = JRE > library it still failed to compile in this scenario. > > The String class used to have two compareTo methods, but now it only has > one, which seems like a non-passive change. This is a binary compatibilit= y > issue vs. a source compatibility issue? If this was compiled against the > Java 1.4 libraries, it would still be binary compatible at runtime with a > Java 5 library, but once the code is compile using Java 5 source, it's no > longer compatible. > > -Nathan > > > > > -----Original Message----- > > From: Loenko, Mikhail Y [mailto:mikhail.y.loenko@intel.com] > > Sent: Wednesday, April 19, 2006 1:11 AM > > To: harmony-dev@incubator.apache.org > > Subject: RE: [jira] Assigned: (HARMONY-376) [classlib][luni] Generics > > uplift for java.lang.String and java.util.Comparator > > > > Hi Nathan > > > > the patch breaks the build > > > > compile: > > [javac] Compiling 1639 source files to C:\harmony\build > > [javac] > > C:\harmony\modules\jndi\src\main\java\javax\naming\CompositeName.java:5= 0 > > 9: compareTo(java.lang.String) in java.lang.String cannot be applied to > > (java.lang.Object) > > [javac] r =3D ((String) > > elems.get(i)).compareTo(he.elems.get(i)); > > [javac] ^ > > > > Thanks, > > Mikhail > > > > > > >-----Original Message----- > > >From: Mikhail Loenko (JIRA) [mailto:jira@apache.org] > > >Sent: Wednesday, April 19, 2006 12:37 PM > > >To: harmony-commits@incubator.apache.org > > >Subject: [jira] Assigned: (HARMONY-376) [classlib][luni] Generics > > uplift for java.lang.String and > > >java.util.Comparator > > > > > > [ http://issues.apache.org/jira/browse/HARMONY-376?page=3Dall ] > > > > > >Mikhail Loenko reassigned HARMONY-376: > > >-------------------------------------- > > > > > > Assign To: Mikhail Loenko > > > > > >> [classlib][luni] Generics uplift for java.lang.String and > > java.util.Comparator > > >> > > -----------------------------------------------------------------------= - > > ------ > > >> > > >> Key: HARMONY-376 > > >> URL: http://issues.apache.org/jira/browse/HARMONY-376 > > >> Project: Harmony > > >> Type: Improvement > > > > > >> Components: Classlib > > >> Reporter: Nathan Beyer > > >> Assignee: Mikhail Loenko > > >> Attachments: String_Comparator_generics_uplift.txt > > >> > > >> This issue is for adding the generic signatures to > > java.util.Comparator, java.lang.String and a > > >bit of clean up and updated test cases. > > > > > >-- > > >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 > > > > --------------------------------------------------------------------- > > 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 > > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- 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