Fixed a bug in method modifier generation.
authorChao Huang <chuang10@uiuc.edu>
Mon, 7 Mar 2005 18:34:39 +0000 (18:34 +0000)
committerChao Huang <chuang10@uiuc.edu>
Mon, 7 Mar 2005 18:34:39 +0000 (18:34 +0000)
src/langs/jade/java.tree.g

index 39ab1909e393b62bf7757eae967629b9f5964d9e..4660a690713bbbfe8de9b158f5d6c308fe695d32 100644 (file)
@@ -394,9 +394,9 @@ methodDef[AST className]
                         + J.printParamList(parameters) + ")";
 
                     StringBuffer p = new StringBuffer();
-                    if (J.isX(m, "public")) {
+                    if (J.isX(m.getFirstChild(), "public")) {
                         p.append("public");
-                    } else if (J.isX(m, "protected"))
+                    } else if (J.isX(m.getFirstChild(), "protected"))
                         p.append("protected");
                     else {
                         p.append("private");