jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zachary McMahon" <zmcma...@gmail.com>
Subject Re: Duplicate class files in 1.8.0 1.4EE
Date Sat, 10 Jan 2009 01:57:33 GMT
I just noticed that the jar that is in the maven repository doesn't have the
duplicate class issue - so I'll use this for now.
http://repo1.maven.org/maven2

The distro that I grabbed from the homepage looks like is the one with
duplicate classes.
http://jakarta.apache.org/site/downloads/downloads_cactus.cgi

On Fri, Jan 9, 2009 at 1:52 PM, Zachary McMahon <zmcmahon@gmail.com> wrote:

> Sorry in advance if this is a known issue - but I couldn't seem to find it
> by searching the list.
>
> While trying to compile some cactus test classes via Ant using cactus 1.8.0
> with java 1.4 I would get the following error:
>
>     [javac] An exception has occurred in the compiler (1.4.2_18). Please
> file a bug at the Java Developer Connection (
> http://java.sun.com/cgi-bin/bugreport.cgi)  after checking the Bug Parade
> for duplicates. Include your program and the following diagnostic in your
> report.  Thank you.
>     [javac] java.lang.ArrayIndexOutOfBoundsException: 1951436875
>     [javac]     at
> com.sun.tools.javac.v8.code.ClassReader.nextInt(ClassReader.java:335)
>     [javac]     at
> com.sun.tools.javac.v8.code.ClassReader.skipMember(ClassReader.java:820)
>     [javac]     at
> com.sun.tools.javac.v8.code.ClassReader.readClass(ClassReader.java:861)
> ...
>
> This error would not occur if I just did a 'Clean' in eclipse or was using
> a higher version of java (1.6).
>
> After a bit of investigation, it turns out that the
> cactus.core.framework.uberjar.javaEE.14-1.8.0-orig.jar file has a bunch of
> duplicate class files within the same package (e.g.
> org/apache/cactus/server/ServletTestRedirector). If I remove the smaller
> duplicate class files, the compilation completes in 1.4.
>
> Am I missing something or is this a problem with the release?
>
> Thanks!
>
> --
> zachary mcmahon
> zmcmahon@gmail.com
>



-- 
zachary mcmahon
zmcmahon@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message