Slightly modified Java 7 compiler. Tracks shape use. It's really not much.
Set your JAVA_HOME
variable, then run:
cd langtools/make; sh blg-build.sh
Building generates an executable in dist/bootstrap/lib/javac.jar
.
Easiest way to call this is through the script dist/bootstrap/bin/javab
.
Edit this script with the right paths, then symlink it to /usr/bin
.
Everything interesting is in langtools/src/share/classes/com/sun/tools/javac/
.
util/Shapes.java
lists the known shapescomp/Check.java
checks for shapesresources/compiler.properties
defines notes, errors, and warnings, including the ones for SHAPE ABUSE
99% of this code belongs to Java, not me. Thanks Java.
Ok Future Ben, that's all I've got for you. Enjoy