Verifier Exception
Stephen Kolaroff <[email protected]>
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]> |
I got following exception while verifying a class:
java.lang.ArrayIndexOutOfBoundsException
at
org.apache.bcel.verifier.structurals.LocalVariables.set(LocalVariables.java:125)
at
org.apache.bcel.verifier.structurals.Pass3bVerifier.do_verify(Pass3bVerifier.java:328)
at org.apache.bcel.verifier.PassVerifier.verify(PassVerifier.java:108)
at org.apache.bcel.verifier.Verifier.doPass3b(Verifier.java:135)
at org.apache.bcel.verifier.Verifier.main(Verifier.java:263)
at myClass.main(MyClass.java:169)
As one can see, it is thrown during pass 3b. The problem was that the
method being verified had declared less local variables (0) than
actually used (1).
Actually there is no workaround: the verified method was broken, and the
problem must be reported instead of throwing exception.
I am using BCEL 5.0.
Hope this Help
Cheffo