diff options
-rw-r--r-- | src/main/javassist/compiler/Parser.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/Parser.java b/src/main/javassist/compiler/Parser.java index c67d49ec..5290450c 100644 --- a/src/main/javassist/compiler/Parser.java +++ b/src/main/javassist/compiler/Parser.java @@ -681,6 +681,10 @@ public final class Parser implements TokenId { throws CompileError { lex.get(); // '{' + if(lex.lookAhead() == '}'){ + lex.get(); + return new ArrayInit(new IntConst(0,TokenId.IntConstant)); + } ASTree expr = parseExpression(tbl); ArrayInit init = new ArrayInit(expr); while (lex.lookAhead() == ',') { |