CFR will decompile modern Java features - up to and including much of Java 9,
10, 12 and beyond, but is written entirely in Java 6, so will work anywhere!
It'll even make a decent go of turning class files from other JVM
languages (like Kotlin) back into Java!
To use, simply run the specific version jar, with the class name(s) you want to
decompile (either as a path to a class file, or as a fully qualified classname
on your classpath). (Use --help to list arguments).
Alternately, to decompile an entire jar, simply provide the jar path, and if
you want to emit files (which you probably do!) add --outputdir /tmp/putithere.
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
USES=java:build,run if NO_BUILD is undefined. Else it defaults to
USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>
Approved by: mat (portmgr), glewis
Differential Revision: https://reviews.freebsd.org/D48201
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Update to 0.148
Changelog:
- Adapt to changes in ecj's output of switch-on-enum
- Many small fixes for handling obfuscation mapping files
(--obfuscationpath file.txt)
- Work on (unfinished) token output stream
- Fix for regression on pretty printing of inner classes
Also pet portclippy.
Reported by: Repology
Update to 0.147
Changelog:
- Support for deobfuscation mapping files
- Fix extraneous array creation
- Handle duplicate target shared between disconnected switches
- Reduce over-aggressive eclipse pass
- Allow try resources to be collapsed
- Fail gracefully if a lambda body is recursive
- Handle module definition classes
- Fix for effectively empty try requiring topsort
- Allow filter on imports, to force FQN
- Fix overuse of boxed constant names
Reported by: Repology
devel/cfr: Update to 0.144
Changelog:
- Fix leakage of internal class names in accesses of enclosing anonymous
classes.
- Pseudocode support for JVM11+'s dynamic constants.
Reported by: portscout
New port: devel/cfr: Class File Reader (CFR) Java decompiler
CFR will decompile modern Java features - up to and including much of Java
9, 10, 12 and beyond, but is written entirely in Java 6, so will work
anywhere!
It'll even make a decent go of turning class files from other JVM langauges
(like Kotlin) back into Java!
To use, simply run the specific version jar, with the class name(s) you
want to decompile (either as a path to a class file, or as a fully
qualified classname on your classpath).
Alternately, to decompile an entire jar, simply provide the jar path,
and if you want to emit files (which you probably do!)
add --outputdir /tmp/putithere.
WWW: https://www.benf.org/other/cfr/