-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse does not list references within Jar files #4
Comments
On my machine, Eclipse find successfully references to decompiled classes when I perform such a search on it. Also all references in my source code to methods in decompiled classes are listed when I select such a class and press the shortcut. So it's fine to find out where you access the library code As far as I can see, in order to find references from jars, these have to be indexed, which requires a complete decompilation of all class files. Currently, ECD does not provide this functionality, for reasons of speed. |
How is it that jd-eclipse plugin does this? |
I have no idea, to be honest. Nothing in the plugin hints that this might be happening, so we need to have a more in depth look at this. |
Just FYI, this works on my machine. Ctrl-Shift-G on a class name or method within my workspace or within a decompiled class works and finds all uses of the class/method in all the jars in my dependencies. @dave-fl In which case exactly does it not work? |
Oh, yeah, yesterday I gave this some more thought (@jmiserez thanks for reminding me) and this should actually be a builtin feature of Eclipse, not of the decompiler plugin. Eclipse will look for references on the classpath as far as I know, I don't think they search "random" jars in the project. So as long as you're looking for something on the classpath, it should be alright. |
Cmd + Click (macOS), on method or class names, with the options "Open declaration" or "Open implementation" does work seamlessly between source code or compiled classes. This functionality seems to be part of the java editor and independent of ecd. When ecd is not installed the default class viewer is launched when source code is unavailable. Cmd+Shift+G with an interface or abstract class selected kicks off a search for known implementations, not sure if this is the same as the mentioned key combination. Eclipse Java EE IDE for Web Developers. my 2c =) |
Duplicate from: cnfree/Eclipse-Class-Decompiler#34
Hi,
As you know, eclipse has a functionality to find references of a particular method (Ctrl + Shift + G). This is not working with eclipse class decompiler. I observed that jd-eclipse plugin is able to find the references in jar file.
I hope you look into this as this becomes really important when you do not have source code and you want to find references of a particular method in other classes present in jar.
The text was updated successfully, but these errors were encountered: