diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2012-06-06 14:34:02 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2012-06-06 14:34:02 +0000 |
commit | e75c12e0964f27abb798393473913307d24efe61 (patch) | |
tree | 49a585a8a8abe9b76556b516054d9a071b367136 /src/main/javassist/compiler | |
parent | 12d5a5f3ccaec717942009a56089eaf34d4783d7 (diff) | |
download | javassist-e75c12e0964f27abb798393473913307d24efe61.tar.gz javassist-e75c12e0964f27abb798393473913307d24efe61.zip |
fixed JASSIST-166
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@633 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/compiler')
-rw-r--r-- | src/main/javassist/compiler/TypeChecker.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/TypeChecker.java b/src/main/javassist/compiler/TypeChecker.java index fc6a567e..35a8e378 100644 --- a/src/main/javassist/compiler/TypeChecker.java +++ b/src/main/javassist/compiler/TypeChecker.java @@ -899,6 +899,9 @@ public class TypeChecker extends Visitor implements Opcode, TokenId { public void atArrayLength(Expr expr) throws CompileError { expr.oprand1().accept(this); + if (arrayDim == 0) + throw new NoFieldException("length", expr); + exprType = INT; arrayDim = 0; } |