You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by db...@apache.org on 2005/10/10 08:17:09 UTC

svn commit: r312569 - /jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java

Author: dbrosius
Date: Sun Oct  9 23:16:52 2005
New Revision: 312569

URL: http://svn.apache.org/viewcvs?rev=312569&view=rev
Log:
guard against npe's

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=312569&r1=312568&r2=312569&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 Sun Oct  9 23:16:52 2005
@@ -1146,9 +1146,7 @@
 			}
 			if (m == null){
 				constraintViolated(o, "Referenced method '"+o.getMethodName(cpg)+"' with expected signature '"+o.getSignature(cpg) +"' not found in class '"+jc.getClassName()+"'. The native verifier possibly allows the method to be declared in some superclass or implemented interface, which the Java Virtual Machine Specification, Second Edition does not.");
-			}
-			
-			if (! (m.isStatic())){ // implies it's not abstract, verified in pass 2.
+			} else if (! (m.isStatic())){ // implies it's not abstract, verified in pass 2.
 				constraintViolated(o, "Referenced method '"+o.getMethodName(cpg)+"' has ACC_STATIC unset.");
 			}
 		



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org