aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-12-26 15:24:21 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-12-26 15:24:21 +0000
commitba0a3e173968737f8683069775e491d3b8764a9d (patch)
treeb3e17025364b4aa17c787d06105c4e5d74b65f3c
parentdf567502f85f1490e238c47badaacc0c32152659 (diff)
downloadjavassist-ba0a3e173968737f8683069775e491d3b8764a9d.tar.gz
javassist-ba0a3e173968737f8683069775e491d3b8764a9d.zip
fixed a compiler bug.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@62 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r--Readme.html9
-rw-r--r--src/main/javassist/compiler/TypeChecker.java2
2 files changed, 3 insertions, 8 deletions
diff --git a/Readme.html b/Readme.html
index 00e3d4ba..c4632214 100644
--- a/Readme.html
+++ b/Readme.html
@@ -251,19 +251,14 @@ see javassist.Dump.
<h2>Changes</h2>
-<p>- version 2.8
-
-<ul>
- <li>CtClass.getURL() and javassist.ClassPath.find() has been added.
-</ul>
-
-<p>- version 2.7 in October, 2003.
+<p>- version 2.7
<ul>
<li>CtClass.main(), which prints the version number, has been added.
<li>ClassPool.SimpleLoader has been public.
<li>javassist.bytecode.DeprecatedAttribute has been added.
<li>javassist.bytecode.LocalVariableAttribute has been added.
+ <li>CtClass.getURL() and javassist.ClassPath.find() has been added.
</ul>
<p>- version 2.6 in August, 2003.
diff --git a/src/main/javassist/compiler/TypeChecker.java b/src/main/javassist/compiler/TypeChecker.java
index 602f6c02..5ddf4f76 100644
--- a/src/main/javassist/compiler/TypeChecker.java
+++ b/src/main/javassist/compiler/TypeChecker.java
@@ -669,7 +669,7 @@ public class TypeChecker extends Visitor implements Opcode, TokenId {
if (oprand instanceof Expr) {
Expr e = (Expr)oprand;
if (e.getOperator() == ARRAY) {
- atArrayRead(expr.oprand1(), expr.oprand2());
+ atArrayRead(e.oprand1(), e.oprand2());
// arrayDim should be 0.
int t = exprType;
if (t == INT || t == BYTE || t == CHAR || t == SHORT)