more verbose error messages

changed copyright comment


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@507 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 346300a6a8
commit 303d5b2fe1
  1. 26
      jode/jode/flow/SequentialBlock.java

@ -1,20 +1,22 @@
/* SequentialBlock (c) 1998 Jochen Hoenicke /* SequentialBlock Copyright (C) 1998-1999 Jochen Hoenicke.
* *
* You may distribute under the terms of the GNU General Public License. * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
* *
* IN NO EVENT SHALL JOCHEN HOENICKE BE LIABLE TO ANY PARTY FOR DIRECT, * This program is distributed in the hope that it will be useful,
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF * but WITHOUT ANY WARRANTY; without even the implied warranty of
* THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF JOCHEN HOENICKE * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * GNU General Public License for more details.
* *
* JOCHEN HOENICKE SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT * You should have received a copy of the GNU General Public License
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * along with this program; see the file COPYING. If not, write to
* PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
* BASIS, AND JOCHEN HOENICKE HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
* SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
* *
* $Id$ * $Id$
*/ */
package jode.flow; package jode.flow;
import jode.decompiler.TabbedPrintWriter; import jode.decompiler.TabbedPrintWriter;
import jode.expr.LocalStoreOperator; import jode.expr.LocalStoreOperator;
@ -60,6 +62,8 @@ public class SequentialBlock extends StructuredBlock {
* @return stack the stack afterwards. * @return stack the stack afterwards.
*/ */
public VariableStack mapStackToLocal(VariableStack stack) { public VariableStack mapStackToLocal(VariableStack stack) {
if (stack == null)
jode.Decompiler.err.println("map stack to local called with null: " + this+ " in "+this.flowBlock);
VariableStack middle = subBlocks[0].mapStackToLocal(stack); VariableStack middle = subBlocks[0].mapStackToLocal(stack);
if (middle != null) if (middle != null)
// Otherwise the second block is at least "logical" dead code // Otherwise the second block is at least "logical" dead code

Loading…
Cancel
Save