Add CFR Java decompiler plugin for .class file comparison#3242
Merged
sdottaka merged 1 commit intoWinMerge:masterfrom Mar 10, 2026
Merged
Conversation
Adds a new DecompileJVM plugin that uses CFR (Class File Reader) to decompile .class files into readable Java source code, enabling meaningful line-by-line comparison of compiled Java classes. This complements the existing DisassembleJVM plugin (javap bytecode) by providing human-readable Java source output.
Member
|
Thank you for the PR. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new WinMerge Unpacker plugin that decompiles JVM .class files into Java source using the CFR decompiler, enabling more readable comparisons than the existing javap bytecode disassembler.
Changes:
- Registers a new
DecompileJVMplugin entry for.classfiles that outputs.java. - Adds a
cfr.batcommand wrapper (with auto-download) plus URL metadata. - Documents the new plugin in the English manual.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Plugins/Plugins.xml | Adds the DecompileJVM plugin definition and wires it to the CFR command wrapper. |
| Plugins/Commands/CFR/cfr.bat | Adds the CFR launcher script with on-demand download behavior. |
| Plugins/Commands/CFR/URL.txt | Adds upstream URLs for CFR download/source. |
| Docs/Manual/English/Plugins.xml | Adds manual documentation for the new DecompileJVM plugin. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
sdottaka
added a commit
that referenced
this pull request
Mar 10, 2026
sdottaka
added a commit
that referenced
this pull request
Mar 10, 2026
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.
Adds a new DecompileJVM unpacker plugin that uses CFR (Class File Reader) to decompile .class files into readable Java
source code, enabling meaningful line-by-line comparison of compiled Java classes.
This complements the existing DisassembleJVM plugin (javap bytecode output) by providing human-readable Java source
output instead of raw bytecode instructions.
The plugin appears under Plugins > Unpacker > Decompilation > "Decompile Java (CFR)" and outputs .java files for
comparison. It also works with .class files inside JAR archives.
Changes: