jdecomp icon indicating copy to clipboard operation
jdecomp copied to clipboard

Is it possible to jump to a specific class/symbol in the decompiled file?

Open jguenther opened this issue 8 years ago • 1 comments

Thanks for this!

I tried this out today to use with company-emacs-eclim, because sometimes eclim-java-find-declaration takes me to a .class file. It works great so far using cfr as the decompiler, except that point always ends up at the first line of the decompiled .java file in the preview window.

Is it possible to somehow jump directly to a class/function in the decompiled file?

e.g. point is at the | in class F|oo. I hit M-. (eclim-java-find-declaration) and I jump right to the declaration for class Foo in the decompiled .java file.

I assume that this would be a lot easier if emacs-eclim supported decompilation directly, but can you think of a way to make that work?

jguenther avatar Aug 18 '17 22:08 jguenther

Hmm, I'm not familiar with emacs-eclim, but for this to work, it would have to somehow pass information about the member / method to jdecomp. jdecomp would then have to decompile the class file, then jump to that member / method.

If you want to take a crack at this, I'm happy to accept a PR 😃.

xiongtx avatar Mar 14 '18 21:03 xiongtx