ditch debugToString
[org.ibex.classgen.git] / src / org / ibex / classgen / JSSA.java
index ff688fd..23c88bc 100644 (file)
@@ -333,6 +333,7 @@ public class JSSA extends MethodGen implements CGConst {
 
     public class Constant extends Expr {
         private final Object o;
+        public Constant(int i) { this(new Integer(i)); }
         public Constant(Object o) { this.o = o; }
         public String toString() { return o.toString(); }
         public Type getType() {
@@ -525,6 +526,6 @@ public class JSSA extends MethodGen implements CGConst {
 
     public static void main(String[] args) throws Exception {
         InputStream is = Class.forName(args[0]).getClassLoader().getResourceAsStream(args[0].replace('.', '/')+".class");
-        System.out.println(new ClassFile(new DataInputStream(is), true).debugToString());
+        System.out.println(new ClassFile(new DataInputStream(is), true).toString());
     }
 }