Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 65183 invoked from network); 13 Apr 2006 16:26:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2006 16:26:42 -0000 Received: (qmail 81887 invoked by uid 500); 13 Apr 2006 16:26:37 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 81830 invoked by uid 500); 13 Apr 2006 16:26:36 -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 81818 invoked by uid 99); 13 Apr 2006 16:26:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 09:26:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mark.hindess@googlemail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO pproxy.gmail.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 09:26:35 -0700 Received: by pproxy.gmail.com with SMTP id o67so4014302pye for ; Thu, 13 Apr 2006 09:26:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bXDay3rZcuibYHDl2a1gs/Kp31hG3zYi4l5o30KzxGPmSXLEkNmr7PbJmmsyiRgdCpIX1GK1+MKEZjaxd+8Lu2kJjDYEH3Xz9RmwUQycdhQKNnzfGK/MJQf4NpkCawaAFg2R/aoso2bIxL+NG6AbWlniB5lIKYsAEClXmXUPX/U= Received: by 10.35.127.7 with SMTP id e7mr307845pyn; Thu, 13 Apr 2006 09:26:12 -0700 (PDT) Received: by 10.35.63.11 with HTTP; Thu, 13 Apr 2006 09:26:12 -0700 (PDT) Message-ID: Date: Thu, 13 Apr 2006 17:26:12 +0100 From: "Mark Hindess" To: harmony-dev@incubator.apache.org Subject: Re: Compiler error on linux with IBM 5.0 and Sun 5.0 compilers In-Reply-To: <906dd82e0604130849q3c3be28fy5b4cb1346fa9298b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <443E51CE.1060907@googlemail.com> <906dd82e0604130650sb76f9e3we26875827d28b74a@mail.gmail.com> <443E5880.20301@pobox.com> <443E5BA9.8000308@googlemail.com> <906dd82e0604130814u70e97322j49218ae8cd0c9142@mail.gmail.com> <906dd82e0604130849q3c3be28fy5b4cb1346fa9298b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Can you not fix it anyway? Please. It's a trivial refactoring. Regards, Mark. On 4/13/06, Mikhail Loenko wrote: > I do not have one :) > > Will try... > > Thanks, > Mikhail > > 2006/4/13, Mark Hindess : > > And with the Sun compiler? It should be trivial to reproduce. > > > > -Mark. > > > > On 4/13/06, Mikhail Loenko wrote: > > > I've just created workspave from scratch and built it according to in= structions. > > > > > > Everything passed. > > > > > > Windows XP, BEA 1.5 > > > > > > Thanks, > > > Mikhail > > > > > > 2006/4/13, Oliver Deakin : > > > > Thanks Mark > > > > This fixes the compilation problems I saw in ~1.java and ~2.java. I= can > > > > now run the crypto testsuite through in Windows ok with no failures= . I > > > > will run the whole set of testsuites for all modules and post if I = see > > > > anything similar elsewhere. > > > > > > > > > > > > Mark Hindess wrote: > > > > > This fixes the *1.java case: > > > > > > > > > > @@ -391,9 +391,13 @@ > > > > > } > > > > > } > > > > > try { > > > > > - skF[i].getKeySpec(secKeySpec, > > > > > - (defaultAlgorithm.equals(defaultAlgorith= m2) > > > > > - ? DESedeKeySpec.class : DESKeySp= ec.class)); > > > > > + Class c; > > > > > + if (defaultAlgorithm.equals(defaultAlgorithm2)) = { > > > > > + c =3D DESedeKeySpec.class; > > > > > + } else { > > > > > + c =3D DESKeySpec.class; > > > > > + } > > > > > + skF[i].getKeySpec(secKeySpec, c); > > > > > fail("getKeySpec(secKey, Class): > > > > > InvalidKeySpecException must be thrown"); > > > > > } catch (InvalidKeySpecException e) { > > > > > } > > > > > > > > > > Just looking at the 2.java case and will submit a JIRA with both. > > > > > > > > > > -Mark. > > > > > > > > > > On 4/13/06, Geir Magnusson Jr wrote: > > > > > > > > > >> I think that would be a workaround once we understand the cause. > > > > >> > > > > >> geir > > > > >> > > > > >> Mikhail Loenko wrote: > > > > >> > > > > >>> We may compile the tests old way... > > > > >>> > > > > >>> Thanks, > > > > >>> Mikhail > > > > >>> > > > > >>> 2006/4/13, Mark Hindess : > > > > >>> > > > > >>>> Excluding these two tests: > > > > >>>> > > > > >>>> javax/crypto/SecretKeyFactoryTest1.java > > > > >>>> javax/crypto/SecretKeyFactoryTest2.java > > > > >>>> > > > > >>>> then the compilation works. > > > > >>>> > > > > >>>> -Mark. > > > > >>>> > > > > >>>> On 4/13/06, Oliver Deakin wrote= : > > > > >>>> > > > > >>>>> Hi Mark, > > > > >>>>> > > > > >>>>> Ive just found the same thing while building the crypto tests= in windows > > > > >>>>> using J9 50. All tests up to there are ok. The output I get i= s similar > > > > >>>>> to yours: > > > > >>>>> > > > > >>>>> compile.tests: > > > > >>>>> [echo] Compiling CRYPTO tests from > > > > >>>>> C:\PROGRA~1\eclipse\workspace\classlib\modules\crypto\src\tes= t\java > > > > >>>>> [javac] Compiling 31 source files to > > > > >>>>> C:\PROGRA~1\eclipse\workspace\classlib\modules\crypto\bin\tes= t > > > > >>>>> [javac] An exception has occurred in the compiler (1.5.0)= . Please > > > > >>>>> file a bug > > > > >>>>> at the Java Developer Connection > > > > >>>>> (http://java.sun.com/webapps/bugreport) after > > > > >>>>> checking the Bug Parade for duplicates. Include your program= and the > > > > >>>>> following > > > > >>>>> diagnostic in your report. Thank you. > > > > >>>>> > > > > >>>>> Ill take a look and see if I can find which class it's compil= ing at the > > > > >>>>> time. > > > > >>>>> > > > > >>>>> Regards, > > > > >>>>> Oliver > > > > >>>>> > > > > >>>>> Mark Hindess wrote: > > > > >>>>> > > > > >>>>>> If I do a clean checkout and run: > > > > >>>>>> > > > > >>>>>> ant -f make/depends.xml download > > > > >>>>>> ant -f make/build.xml > > > > >>>>>> ant -f make/build-test.xml compile-support > > > > >>>>>> cd modules/crypto > > > > >>>>>> ant -f make/build.xml test > > > > >>>>>> > > > > >>>>>> I get a compiler error. I've tried using both an IBM 5.0 an= d Sun 5.0 > > > > >>>>>> compiler and get the same error: > > > > >>>>>> > > > > >>>>>> An exception has occurred in the compiler (1.5.0_06). Plea= se file a > > > > >>>>>> bug at the Java Developer Connection > > > > >>>>>> (http://java.sun.com/webapps/bugreport) after checking the = Bug Parade > > > > >>>>>> for duplicates. Include your program and the following diagn= ostic in > > > > >>>>>> your report. Thank you. > > > > >>>>>> > > > > >>>>>> I assume since everyone else is quietly working on adding 5.= 0 code > > > > >>>>>> that I am the only one with this problem? > > > > >>>>>> > > > > >>>>>> I'm about to try the same test under windows, but thought I'= d mention > > > > >>>>>> this hear first. > > > > >>>>>> > > > > >>>>>> Regards, > > > > >>>>>> Mark. > > > > >>>>>> > > > > >>>>>> -- > > > > >>>>>> Mark Hindess > > > > >>>>>> IBM Java Technology Centre, UK. > > > > >>>>>> > > > > >>>>>> ------------------------------------------------------------= --------- > > > > >>>>>> Terms of use : http://incubator.apache.org/harmony/mailing.h= tml > > > > >>>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.ap= ache.org > > > > >>>>>> For additional commands, e-mail: harmony-dev-help@incubator.= apache.org > > > > >>>>>> > > > > >>>>>> > > > > >>>>>> > > > > >>>>>> > > > > >>>>> -- > > > > >>>>> Oliver Deakin > > > > >>>>> IBM United Kingdom Limited > > > > >>>>> > > > > >>>>> > > > > >>>>> -------------------------------------------------------------= -------- > > > > >>>>> Terms of use : http://incubator.apache.org/harmony/mailing.ht= ml > > > > >>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apa= che.org > > > > >>>>> For additional commands, e-mail: harmony-dev-help@incubator.a= pache.org > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>> -- > > > > >>>> Mark Hindess > > > > >>>> IBM Java Technology Centre, UK. > > > > >>>> > > > > >>>> --------------------------------------------------------------= ------- > > > > >>>> Terms of use : http://incubator.apache.org/harmony/mailing.htm= l > > > > >>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apac= he.org > > > > >>>> For additional commands, e-mail: harmony-dev-help@incubator.ap= ache.org > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>> ---------------------------------------------------------------= ------ > > > > >>> Terms of use : http://incubator.apache.org/harmony/mailing.html > > > > >>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apach= e.org > > > > >>> For additional commands, e-mail: harmony-dev-help@incubator.apa= che.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.apac= he.org > > > > >> > > > > >> > > > > >> > > > > > > > > > > > > > > > -- > > > > > Mark Hindess > > > > > IBM Java Technology Centre, UK. > > > > > > > > > > -----------------------------------------------------------------= ---- > > > > > 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.apach= e.org > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Oliver Deakin > > > > IBM United Kingdom Limited > > > > > > > > > > > > -------------------------------------------------------------------= -- > > > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.or= g > > > > 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.or= g > > > > > > > > > > > > -- > > Mark Hindess > > IBM Java Technology Centre, UK. > > > > --------------------------------------------------------------------- > > 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 > > -- Mark Hindess IBM Java Technology Centre, UK. --------------------------------------------------------------------- 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