# harmony-dev mailing list archives

##### Site index · List index
Message view
Top
Subject Re: Compiler error on linux with IBM 5.0 and Sun 5.0 compilers
Date Thu, 13 Apr 2006 16:26:12 GMT
```Can you not fix it anyway?  Please.  It's a trivial refactoring.

Regards,
Mark.

On 4/13/06, Mikhail Loenko <mloenko@gmail.com> wrote:
> I do not have one :)
>
> Will try...
>
> Thanks,
> Mikhail
>
> > And with the Sun compiler?  It should be trivial to reproduce.
> >
> > -Mark.
> >
> > On 4/13/06, Mikhail Loenko <mloenko@gmail.com> wrote:
> > > I've just created workspave from scratch and built it according to instructions.
> > >
> > > Everything passed.
> > >
> > > Windows XP, BEA 1.5
> > >
> > > Thanks,
> > > Mikhail
> > >
> > > 2006/4/13, Oliver Deakin <oliver.deakin@googlemail.com>:
> > > > 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(defaultAlgorithm2)
> > > > > -                                ? DESedeKeySpec.class : DESKeySpec.class));
> > > > > +                Class c;
> > > > > +                if (defaultAlgorithm.equals(defaultAlgorithm2))
{
> > > > > +                    c = DESedeKeySpec.class;
> > > > > +                } else {
> > > > > +                    c = 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 <geir@pobox.com> 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 <mark.hindess@googlemail.com>:
> > > > >>>
> > > > >>>> Excluding these two tests:
> > > > >>>>
> > > > >>>>  javax/crypto/SecretKeyFactoryTest1.java
> > > > >>>>  javax/crypto/SecretKeyFactoryTest2.java
> > > > >>>>
> > > > >>>> then the compilation works.
> > > > >>>>
> > > > >>>> -Mark.
> > > > >>>>
> > > > >>>> On 4/13/06, Oliver Deakin <oliver.deakin@googlemail.com>
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 is similar
> > > > >>>>> to yours:
> > > > >>>>>
> > > > >>>>> compile.tests:
> > > > >>>>>      [echo] Compiling CRYPTO tests from
> > > > >>>>> C:\PROGRA~1\eclipse\workspace\classlib\modules\crypto\src\test\java
> > > > >>>>>     [javac] Compiling 31 source files to
> > > > >>>>> C:\PROGRA~1\eclipse\workspace\classlib\modules\crypto\bin\test
> > > > >>>>>     [javac] An exception has occurred in the compiler
> > > > >>>>> file a bug
> > > > >>>>>  at the Java Developer Connection
> > > > >>>>> (http://java.sun.com/webapps/bugreport)  after
> > > > >>>>>  checking the Bug Parade for duplicates. Include
> > > > >>>>> following
> > > > >>>>> diagnostic in your report.  Thank you.
> > > > >>>>>
> > > > >>>>> Ill take a look and see if I can find which class
it's compiling at the
> > > > >>>>> time.
> > > > >>>>>
> > > > >>>>> Regards,
> > > > >>>>> Oliver
> > > > >>>>>
> > > > >>>>> Mark Hindess wrote:
> > > > >>>>>
> > > > >>>>>> If I do a clean checkout and run:
> > > > >>>>>>
> > > > >>>>>> 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 and Sun 5.0
> > > > >>>>>> compiler and get the same error:
> > > > >>>>>>
> > > > >>>>>>   An exception has occurred in the compiler (1.5.0_06).
> > > > >>>>>> bug at the Java Developer Connection
> > > > >>>>>> (http://java.sun.com/webapps/bugreport)  after
> > > > >>>>>> for duplicates. Include your program and the
following diagnostic in
> > > > >>>>>> your report.  Thank you.
> > > > >>>>>>
> > > > >>>>>> I assume since everyone else is quietly working
> > > > >>>>>> 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 <mark.hindess@googlemail.com>
> > > > >>>>>> IBM Java Technology Centre, UK.
> > > > >>>>>>
> > > > >>>>>> ---------------------------------------------------------------------
> > > > >>>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > > >>>>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>> --
> > > > >>>>> Oliver Deakin
> > > > >>>>> IBM United Kingdom Limited
> > > > >>>>>
> > > > >>>>>
> > > > >>>>> ---------------------------------------------------------------------
> > > > >>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > > >>>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > > > >>>>>
> > > > >>>>>
> > > > >>>>>
> > > > >>>> --
> > > > >>>> Mark Hindess <mark.hindess@googlemail.com>
> > > > >>>> IBM Java Technology Centre, UK.
> > > > >>>>
> > > > >>>> ---------------------------------------------------------------------
> > > > >>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > > >>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>> ---------------------------------------------------------------------
> > > > >>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > > >>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >> ---------------------------------------------------------------------
> > > > >> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > > >> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > > Mark Hindess <mark.hindess@googlemail.com>
> > > > > IBM Java Technology Centre, UK.
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > Oliver Deakin
> > > > IBM United Kingdom Limited
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> > >
> > >
> >
> >
> > --
> > IBM Java Technology Centre, UK.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

--