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

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
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.");
 			}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.