Incongruity between Eclipse Outline/Package perspective and source code being displayed - Java error generated at runtime

Posted by David Daedalus on Stack Overflow See other posts from Stack Overflow or by David Daedalus
Published on 2013-10-20T09:50:08Z Indexed on 2013/10/20 9:53 UTC
Read the original article Hit count: 255

Filed under:
|
|

I've been debugging a Java application and have encountered something odd. When a particular method is called, Java throws a ClassNotFoundException. Unfortunately, the methods in question (the invoking and the 'missing' one) are inside a JAR file for which I have no documentation or source. To get at the source, I used JD-GUI (a Java JAR reverse engineer-er) and the JD plugin for Eclipse. As far as I can tell, the class in question exists inside the JAR file. This because JD-GUI displays it inside the JAR, and from within Eclipse I can see it listed along with the constructors and methods.

My question is why the source being displayed in Eclipse is for a different class (that also exists)? This program was built with Ant - is it possible the problem lies there?

Screenshot below for your viewing pleasure - and thanks in advance for your help!

a screengrab of the problem

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse