From: adam Date: Fri, 3 Jun 2005 06:23:45 +0000 (+0000) Subject: just a variable renaming X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=325a99a87fc2c459b2e143832402793fac2ab916;hp=a89e8362c31494caa23200dcef4ad5002c89cbfd;p=org.ibex.classgen.git just a variable renaming darcs-hash:20050603062345-5007d-8bfb6fa2ba97f93f7cc18d7198903d73d4d6f6ff.gz --- diff --git a/src/org/ibex/classgen/ConstantPool.java b/src/org/ibex/classgen/ConstantPool.java index 8f51af5..6817ff8 100644 --- a/src/org/ibex/classgen/ConstantPool.java +++ b/src/org/ibex/classgen/ConstantPool.java @@ -360,23 +360,22 @@ class ConstantPool { if (e instanceof LongEnt) index++; } - for(int index=1;index= usedSlots) throw new ClassFile.ClassReadExn("invalid cp index"); + if (e1s[i] == 0 || e1s[i] >= usedSlots) throw new ClassFile.ClassReadExn("invalid cp i"); ce.e1 = entriesByIndex[e1s[i]]; - if (ce.e1 == null) throw new ClassFile.ClassReadExn("invalid cp index"); + if (ce.e1 == null) throw new ClassFile.ClassReadExn("invalid cp i"); if (ce.tag != 7 && ce.tag != 8) { - if (e2s[i] == 0 || e2s[i] >= usedSlots) throw new ClassFile.ClassReadExn("invalid cp index"); + if (e2s[i] == 0 || e2s[i] >= usedSlots) throw new ClassFile.ClassReadExn("invalid cp i"); ce.e2 = entriesByIndex[e2s[i]]; - if (ce.e2 == null) throw new ClassFile.ClassReadExn("invalid cp index"); + if (ce.e2 == null) throw new ClassFile.ClassReadExn("invalid cp i"); } switch(ce.tag) { case 7: