clarkware / jdepend

A Java package dependency analyzer that generates design quality metrics.
MIT License
655 stars 133 forks source link

Illegal constant pool index #1

Closed tdrury closed 14 years ago

tdrury commented 14 years ago

Using an older release of jdepend (before Java 5 annotations), I can run it on our source tree (of 3000+ classes) with no errors. Using the latest jdepend from github (with Java 5 annotations), I'm getting a few dozen errors all like "Illegal constant pool index : ".

Any ideas?

pascallouisperez commented 14 years ago

tdury, can you put a breakpoint on line 361 of the ClassFileParser (in the method getConstantPoolEntry) and when it hits this line go to the parse(File) method's frame, look up the file, and send me this compiled class file? It'll help me narrow down the issue.

tdrury commented 14 years ago

I need an email address for you.

pascallouisperez commented 14 years ago

pascal@kaching.com

pascallouisperez commented 14 years ago

This is resolved: see http://github.com/clarkware/jdepend/commit/6d5417fa5163b4bdbceb53ca8a87e458268bf300

pascallouisperez commented 14 years ago

I've inadvertently introduce a bug in this commit. Please use http://github.com/clarkware/jdepend/commit/3ed92dcaef7b3c889d87905b4dc9b6b4c995906c