浏览代码

Merge pull request #294 from junwen12221/master

Supports parsing 'byte[] a = new byte[]{};'.  Only parsing is supported.  Javassist reports a not-supported error.
tags/rel_3_27_0_ga
Shigeru Chiba 4 年前
父节点
当前提交
afe124ffa5
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/main/javassist/compiler/Parser.java

+ 4
- 0
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() == ',') {

正在加载...
取消
保存