Menu

#186 The "Extract sources" action skips inner classes

open
nobody
None
2025-12-26
2024-07-06
Anonymous
No

Originally created by: JanecekPetr

See the discussion in the "original" ecd: https://github.com/ecd-plugin/ecd/issues/94

In short, when I call the "Export Source" action on a jar or a packge, I get a zip file containing all decompiled .java sources ... but without the inner classes.

If I specifically call "Export sources" on a single inner class, it works. If I select multiple class files, the inner classes are not included.

Discussion

  • Anonymous

    Anonymous - 2024-07-09

    Originally posted by: nbauma109

    I will try to look into it.
    Meanwhile, you can open the jar with jd-gui-duo, extract all sources and attach the sources in Eclipse.

     
  • Anonymous

    Anonymous - 2024-07-09

    Originally posted by: JanecekPetr

    Oh, I didn't know about jd-gui-duo, nice! What I did as a workaround was to decompile everything via the CLI version of Vineflower, then open the normal jd-gui to look at places that didn't quite work with Vineflower.
    Next time I'll use jd-gui-duo for sure, thank you!

     
  • Anonymous

    Anonymous - 2025-12-26

    Originally posted by: nbauma109

    Test.java
    test.zip

    I can't reproduce. I tried right-click->Export Source on the jar or on the class, and it always comes with the inner classes.

     

Log in to post a comment.

MongoDB Logo MongoDB