svn commit: r219368 - /jakarta/bcel/trunk/src/java/org/apache/bcel/generic/InstructionList.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
Author: dbrosius
Date: Sat Jul 16 20:46:05 2005
New Revision: 219368

URL: http://svn.apache.org/viewcvs?rev=219368&view=rev
Log:
Bug: 26532 Update InstructionList's end, if moving to the last instruction.

Modified:
    jakarta/bcel/trunk/src/java/org/apache/bcel/generic/InstructionList.java

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/generic/InstructionList.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/generic/InstructionList.java?rev=219368&r1=219367&r2=219368&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/generic/InstructionList.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/generic/InstructionList.java Sat Jul 16 20:46:05 2005
@@ -649,7 +649,9 @@
       end.next    = next;
 
       if(next != null)
-	next.prev = end;
+	    next.prev = end;
+      else
+    	this.end = end;
     }
   }
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.