--- a/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java Wed Jun 19 13:00:00 2013 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java Wed Jun 19 22:07:05 2013 +0100
@@ -74,8 +74,11 @@
context.put(treeInfoKey, this);
Names names = Names.instance(context);
- setOpname(POS, "+", names);
- setOpname(NEG, names.hyphen);
+ /* Internally we use +++, --- for unary +, - to reduce +, - operators
+ * overloading
+ */
+ setOpname(POS, "+++", names);
+ setOpname(NEG, "---", names);
setOpname(NOT, "!", names);
setOpname(COMPL, "~", names);
setOpname(PREINC, "++", names);