Skip to content
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

Open
dave-fl opened this issue Sep 12, 2017 · 6 comments
Open

Eclipse does not list references within Jar files #4

dave-fl opened this issue Sep 12, 2017 · 6 comments

Comments

@dave-fl
Copy link

dave-fl commented Sep 12, 2017

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.

@pbi-qfs pbi-qfs changed the title Find references does not work. Eclipse does not list references within Jar files Sep 12, 2017
@pbi-qfs
Copy link
Collaborator

pbi-qfs commented Sep 12, 2017

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.

@dave-fl
Copy link
Author

dave-fl commented Sep 12, 2017

How is it that jd-eclipse plugin does this?

@RobertZenz
Copy link
Collaborator

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.

@jmiserez
Copy link

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?

@RobertZenz
Copy link
Collaborator

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.

@nickl-
Copy link

nickl- commented Jun 15, 2018

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.
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200
macOS 10.13.5

my 2c =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants