Menu

#70 SyntheticAnalyser with jdk 1.4 option -source 1.4

open
nobody
None
5
2004-10-04
2004-10-04
Anonymous
No

Index: SyntheticAnalyzer.java

=========================
RCS
file: /cvsroot/jode/jode/src/net/sf/jode/jvm/SyntheticAn
alyzer.java,v
retrieving revision 1.4
diff -u -r1.4 SyntheticAnalyzer.java
--- SyntheticAnalyzer.java 4 Feb 2004 19:01:35 -0000
1.4
+++ SyntheticAnalyzer.java 4 Oct 2004 20:19:08 -0000
@@ -151,8 +151,12 @@
int excSlot = -1;
for (int i=0; i< 7; i++) {
Instruction instr =
catchBlock.getInstructions()[i];
- if (instr.getOpcode() != getClassOpcodes
[3+i])
- return false;
+ if (instr.getOpcode() != getClassOpcodes
[3+i]) {
+ if (i == 3 && instr.getOpcode() ==
getClassOpcodes[8])
+ i = 5;
+ else
+ return false;
+ }
if (i == 0)
excSlot = instr.getLocalSlot();
if (i == 1 && !instr.getClazzType().equals

Discussion


Log in to post a comment.