Ver código fonte

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 anos atrás
pai
commit
afe124ffa5
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/main/javassist/compiler/Parser.java

+ 4
- 0
src/main/javassist/compiler/Parser.java Ver arquivo

@@ -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() == ',') {

Carregando…
Cancelar
Salvar