Author: ebourg
Date: Wed Apr 23 11:10:29 2014
New Revision: 1589371

URL: http://svn.apache.org/r1589371
Log:
Fixed the validation error message when a non abstract method is found in an 
interface (BCEL-174)

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

Modified: 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass2Verifier.java
URL: 
http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass2Verifier.java?rev=1589371&r1=1589370&r2=1589371&view=diff
==============================================================================
--- 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass2Verifier.java
 (original)
+++ 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/statics/Pass2Verifier.java
 Wed Apr 23 11:10:29 2014
@@ -689,7 +689,7 @@ public final class Pass2Verifier extends
                                                throw new 
ClassConstraintException("Interface method '"+tostring(obj)+"' must have the 
ACC_PUBLIC modifier set but hasn't!");
                                        }
                                        if (!obj.isAbstract()){
-                                               throw new 
ClassConstraintException("Interface method '"+tostring(obj)+"' must have the 
ACC_STATIC modifier set but hasn't!");
+                                               throw new 
ClassConstraintException("Interface method '"+tostring(obj)+"' must have the 
ACC_ABSTRACT modifier set but hasn't!");
                                        }
                                        if (    obj.isPrivate() ||
                                                                
obj.isProtected() ||


Reply via email to