1.1 --- a/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java Tue Jun 17 16:32:18 2014 -0600 1.2 +++ b/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java Wed Jun 18 12:30:29 2014 -0400 1.3 @@ -135,6 +135,14 @@ 1.4 } 1.5 } 1.6 1.7 + public static boolean isReceiverParam(JCTree tree) { 1.8 + if (tree.hasTag(VARDEF)) { 1.9 + return ((JCVariableDecl)tree).nameexpr != null; 1.10 + } else { 1.11 + return false; 1.12 + } 1.13 + } 1.14 + 1.15 /** Is there a constructor declaration in the given list of trees? 1.16 */ 1.17 public static boolean hasConstructors(List<JCTree> trees) {