javac-oo /

Filename Size Date modified Message
296 B
75 B
6.1 KB
367 B
1.5 KB
18.8 KB
1.8 KB
1.2 KB
168.1 KB
517 B

JavaC 1.7 + Operator Overloading

This is patched version of JavaC 1.7 for Operator Overloading support. See examples at sample/*.java

See also java-oo, lombok-oo.

How to build:

ant -f make/build.xml

How to test:

java -jar build/bootstrap/lib/javac.jar -d build sample/*.java
java -cp build CmpTest # MathTest, etc

patching Netbeans IDE

You can merge this patches to nb-javac (the javac fork for Netbeans IDE) and you will get Java operator overloading in Netbeans IDE natively:

hg clone
hg clone netbeans
hg clone netbeans/nb-javac
hg diff -R javac-oo -r default:oo javac-oo/src/share/classes/ | patch -d netbeans/nb-javac/ -p1
cd netbeans/

And build netbeans as usual:

ant -Dnbjdk.home=<your jdk6 home>

If you want just update nb-javac:

ant -f libs.javacimpl/build.xml

This will update your nbbuild/netbeans/java/modules/ext/javac-impl-nb-7.0-b07.jar

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.