Browse Source

fixed a compiler bug.


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@62 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 20 years ago
parent
commit
ba0a3e1739
2 changed files with 3 additions and 8 deletions
  1. 2
    7
      Readme.html
  2. 1
    1
      src/main/javassist/compiler/TypeChecker.java

+ 2
- 7
Readme.html View File

@@ -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.

+ 1
- 1
src/main/javassist/compiler/TypeChecker.java View File

@@ -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)

Loading…
Cancel
Save