1 // Copyright (C) 2004 Brian Alliet
3 package org.ibex.gcclass;
7 import org.apache.bcel.util.*;
8 import org.apache.bcel.classfile.*;
11 public static void main(String[] args) throws Exception {
13 System.err.println("Usage DumpCP classpath class");
16 String classpath = ClassPath.SYSTEM_CLASS_PATH + File.pathSeparator + args[0];
17 Repository repo = SyntheticRepository.getInstance(new ClassPath(classpath));
19 JavaClass c = repo.loadClass(args[1]);
20 ConstantPool cp = c.getConstantPool();
21 System.out.println(cp);