From 256279fbd282807e2d49fda3c167243b79e833de Mon Sep 17 00:00:00 2001 From: chiba Date: Sat, 25 Feb 2012 13:00:17 +0000 Subject: fixed JASSIST-156 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@622 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- pom.xml | 65 ++++++---------------- .../javassist/bytecode/analysis/ControlFlow.java | 2 +- 2 files changed, 17 insertions(+), 50 deletions(-) diff --git a/pom.xml b/pom.xml index 9fa0831e..9ae98be0 100644 --- a/pom.xml +++ b/pom.xml @@ -123,6 +123,7 @@ org.apache.maven.plugins maven-compiler-plugin + 2.3.2 1.4 1.4 @@ -131,6 +132,7 @@ org.apache.maven.plugins maven-jar-plugin + 2.3.1 ${project.build.sourceDirectory}/META-INF/MANIFEST.MF @@ -228,61 +230,26 @@ needed by sample code --> - jdk14 + default_profile - 1.4 - - !no.tools - + + !mac + - - - com.sun - tools - 1.4 - system - true - ${java.home}/../lib/tools.jar - - + + ${java.home}/../lib/tools.jar + - jdk15 + osx_profile - 1.5 - - !no.tools - + + mac + - - - com.sun - tools - 1.5 - system - true - ${java.home}/../lib/tools.jar - - - - - jdk16 - - 1.6 - - !no.tools - - - - - com.sun - tools - 1.6 - system - true - ${java.home}/../lib/tools.jar - - + + ${java.home}/../Classes/classes.jar + diff --git a/src/main/javassist/bytecode/analysis/ControlFlow.java b/src/main/javassist/bytecode/analysis/ControlFlow.java index 459f666d..38b59130 100644 --- a/src/main/javassist/bytecode/analysis/ControlFlow.java +++ b/src/main/javassist/bytecode/analysis/ControlFlow.java @@ -344,7 +344,7 @@ public class ControlFlow { StringBuffer sbuf = new StringBuffer(); sbuf.append("Node[pos=").append(block().position()); sbuf.append(", parent="); - sbuf.append(parent == null ? "*" : parent.block().position()); + sbuf.append(parent == null ? "*" : Integer.toString(parent.block().position())); sbuf.append(", children{"); for (int i = 0; i < children.length; i++) sbuf.append(children[i].block().position()).append(", "); -- cgit v1.2.3