projects
/
org.ibex.classgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a89e836
)
just a variable renaming
author
adam
<adam@megacz.com>
Fri, 3 Jun 2005 06:23:45 +0000
(06:23 +0000)
committer
adam
<adam@megacz.com>
Fri, 3 Jun 2005 06:23:45 +0000
(06:23 +0000)
darcs-hash:
20050603062345
-5007d-
8bfb6fa2ba97f93f7cc18d7198903d73d4d6f6ff
.gz
src/org/ibex/classgen/ConstantPool.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/classgen/ConstantPool.java
b/src/org/ibex/classgen/ConstantPool.java
index
8f51af5
..
6817ff8
100644
(file)
--- 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++;
}
if (e instanceof LongEnt) index++;
}
- for(int index=1;index<usedSlots;index++) {
- int i = index;
- Ent e = entriesByIndex[index];
+ for(int i=1;i<usedSlots;i++) {
+ Ent e = entriesByIndex[i];
if (e == null) throw new Error("should never happen: " + i + "/"+usedSlots);
if (e instanceof LongEnt) {
if (e == null) throw new Error("should never happen: " + i + "/"+usedSlots);
if (e instanceof LongEnt) {
- index++;
+ i++;
continue;
}
if (!(e instanceof CPRefEnt)) continue;
CPRefEnt ce = (CPRefEnt) e;
continue;
}
if (!(e instanceof CPRefEnt)) continue;
CPRefEnt ce = (CPRefEnt) e;
- if (e1s[i] == 0 || e1s[i] >= 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]];
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 (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]];
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:
}
switch(ce.tag) {
case 7: