HoneyHyeok / jarjar

Automatically exported from code.google.com/p/jarjar
0 stars 0 forks source link

"IndexOutOfBoundsException" in "ClassHeaderReader" when looking for dependencies #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Don't know for sure, but the Exception is thrown when checking any jar (as
input) for dependence on e.g. "activation.jar" (from Sun Microsystems)

What is the expected output? What do you see instead?

Expected: Dependence

Instead: IndexOutOfBoundException in "ClassHeaderReader.read()" (see
Stacktrace below)

Exception in thread "Thread-3" java.lang.IndexOutOfBoundsException
    at java.util.zip.InflaterInputStream.read(Unknown Source)
    at java.util.jar.JarVerifier$VerifierStream.read(Unknown Source)
    at
com.tonicsystems.jarjar.util.ClassHeaderReader.read(ClassHeaderReader.java:164)
    at
com.tonicsystems.jarjar.util.ClassHeaderReader.buffer(ClassHeaderReader.java:154
)
    at
com.tonicsystems.jarjar.util.ClassHeaderReader.read(ClassHeaderReader.java:86)
    at com.tonicsystems.jarjar.DepFind.run(DepFind.java:42)
    at com.tonicsystems.jarjar.Main.find(Main.java:72)

What version of the product are you using? On what operating system?
Version: 1.0rc7
OS: Win XP

Please provide any additional information below.

I added a String-output to JarJar for interacting with another tiny program
(but didn't change anything else than the "PrintWriter" in Main.find() to
"StringBuffer").

Original issue reported on code.google.com by drewscla...@gmx.de on 29 May 2008 at 3:49

GoogleCodeExporter commented 8 years ago
I don't see this problem and I do have activation.jar in my dependency graphs.  
Maybe
it is system dependent (I use fc9 and fc10 Linux) ? I have activation.jar files 
with
the following md5 checksums:

d5dd655f6056a72116f6a0666745a386
e572d641d75591410838be80f41bbd97

If yours are different, please point at where it can be downloaded, or attach 
the
actual file to this issue.

Original comment by rasmus...@gmail.com on 8 Dec 2008 at 8:25

GoogleCodeExporter commented 8 years ago
Cannot reproduce.

Original comment by chris.no...@gmail.com on 11 Jan 2009 at 4:30