You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2014/04/24 14:31:18 UTC

svn commit: r1589693 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java

Author: ebourg
Date: Thu Apr 24 12:31:18 2014
New Revision: 1589693

URL: http://svn.apache.org/r1589693
Log:
More friendly verification messages

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java?rev=1589693&r1=1589692&r2=1589693&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java Thu Apr 24 12:31:18 2014
@@ -1005,7 +1005,7 @@ public final class Pass3aVerifier extend
 				}
 			}
 			if (f == null){
-				throw new AssertionViolatedException("Field not found?!?");
+                throw new AssertionViolatedException("Field '" + field_name + "' not found in " + jc.getClassName());
 			}
 
 			if (f.isFinal()){
@@ -1045,7 +1045,7 @@ public final class Pass3aVerifier extend
 				}
 			}
 			if (f == null){
-				throw new AssertionViolatedException("Field not found?!?");
+                throw new AssertionViolatedException("Field '" + field_name + "' not found in " + jc.getClassName());
 			}
 
 			if (! (f.isStatic())){