Repository navigation
Add jad --file for decompiling existing class files - #3298
Open
wozhenbang2004 wants to merge 4 commits into
Open
wozhenbang2004 wants to merge 4 commits into
wozhenbang2004 wants to merge 4 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2280.
Add
jad --file /path/to/Foo.class [method-name]to decompile a class file already on the target machine without loading it into the JVM. This reuses the existing CFR output and supports--source-only,--lineNumberand--hideUnicode. File paths can be completed in the shell. Class-loader selection, regex matching and dump-directory options are rejected in file mode.Added command tests and English/Chinese usage examples. The 14 tests in
JadCommandTest,DecompilerTestandCompletionUtilsTestpass. Also checked the packaged application on Java 21 using startup-javaagent, through the HTTP API and telnet client: an unloaded class file (including a path with spaces), a single method, invalid paths, and the normal loaded-class command. The file's class remains unloaded after decompilation.Dynamic attach was not verified because its handshake timed out in this environment.