]> source.dussan.org Git - javassist.git/commitdiff
changed the compiler so that multiple statements do not need to be
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 12 Mar 2004 14:14:46 +0000 (14:14 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 12 Mar 2004 14:14:46 +0000 (14:14 +0000)
surrouneded by {}.  The compiler implicitly surround the statemetns
by {}.

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@72 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/compiler/Javac.java

index 5e20e7e88703dbfe595da05b7d19ecbe325a3bc9..216d0198bfef3753a40cde98b25cba0469bdb19e 100644 (file)
@@ -519,18 +519,17 @@ public class Javac {
      * this method.
      *
      * <p>Local variables that are not declared
-     * in the compiled source text are not accessible within that
-     * source text.  Fields and method parameters
-     * ($0, $1, ..) are available.
+     * in the compiled source text might not be accessible within that
+     * source text.  Fields and method parameters ($0, $1, ..) are available.
      */
     public void compileStmnt(String src) throws CompileError {
         Parser p = new Parser(new Lex(src));
         SymbolTable stb = new SymbolTable(stable);
-     // while (p.hasMore()) {
+        while (p.hasMore()) {
             Stmnt s = p.parseStatement(stb);
             if (s != null)
                 s.accept(gen);
-     // }
+        }
     }
 
     /**