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())){


Reply via email to