aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-03-12 14:14:46 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-03-12 14:14:46 +0000
commit805dd3c4f866a2840dcb7346983aa9135b8687d1 (patch)
tree0b5a976984865d18648cff969660f40b3bae227d /src
parentb6e81e4fd9eec013bcbaec38f6f8674713218955 (diff)
downloadjavassist-805dd3c4f866a2840dcb7346983aa9135b8687d1.tar.gz
javassist-805dd3c4f866a2840dcb7346983aa9135b8687d1.zip
changed the compiler so that multiple statements do not need to be
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
Diffstat (limited to 'src')
-rw-r--r--src/main/javassist/compiler/Javac.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/javassist/compiler/Javac.java b/src/main/javassist/compiler/Javac.java
index 5e20e7e8..216d0198 100644
--- a/src/main/javassist/compiler/Javac.java
+++ b/src/main/javassist/compiler/Javac.java
@@ -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);
- // }
+ }
}
/**