svn commit: r226609 - /jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]> |
Author: dbrosius
Date: Sat Jul 30 23:27:55 2005
New Revision: 226609
URL: http://svn.apache.org/viewcvs?rev=226609&view=rev
Log:
Fix 34418 If a Constant Pool Entry is not of the type expected, catch the exception and report, rather than just throwing the exception to the console, and terminating.
Modified:
jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java
Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java?rev=226609&r1=226608&r2=226609&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java Sat Jul 30 23:27:55 2005
@@ -200,6 +200,9 @@
catch(StaticCodeConstraintException scce){
vr = new VerificationResult(VerificationResult.VERIFIED_REJECTED, scce.getMessage());
}
+ catch(ClassCastException cce){
+ vr = new VerificationResult(VerificationResult.VERIFIED_REJECTED, "Class Cast Exception: " + cce.getMessage());
+ }
return vr;
}
else{ //did not pass Pass 2.