From 8d0fd7ec906c821fdf92fd2045d128ff8e8306ae Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 26 May 2004 14:43:23 +0000 Subject: [PATCH] more wildcard support, absolute classpath, better diagnostics darcs-hash:20040526144323-24bed-a3fac15ae002617fbb538e6dba362ffae7e0f59c.gz --- src/com/brian_web/gcclass/GCClass.java | 63 +++++++++++++++++++++++++------- 1 file changed, 49 insertions(+), 14 deletions(-) diff --git a/src/com/brian_web/gcclass/GCClass.java b/src/com/brian_web/gcclass/GCClass.java index fdb1cc6..5b83970 100644 --- a/src/com/brian_web/gcclass/GCClass.java +++ b/src/com/brian_web/gcclass/GCClass.java @@ -42,7 +42,7 @@ public class GCClass { public static void main(String[] args) throws Exception { if(args.length < 3) { - System.err.println("Usage GCClass classpath outdir entrypoint1 ... [ entrypoint n]"); + System.err.println("Usage GCClass classpath outdir entrypoint1 ... [ entrypoint n]"); System.exit(1); } GCClass gc = new GCClass(args[0]); @@ -58,8 +58,18 @@ public class GCClass { private final Hashtable instansiated = new Hashtable(); public GCClass(String classpath) throws ClassNotFoundException { - repo = SyntheticRepository.getInstance(new ClassPath(ClassPath.SYSTEM_CLASS_PATH + File.pathSeparator + classpath)); - for(int i=0;i")) instansiated.put(new ObjectType(cs),Boolean.TRUE); + if(!skip && (ms.equals("*") || ms.equals(""))) + instansiated.put(new ObjectType(cs),Boolean.TRUE); JavaClass c = repoGet(cs); Method[] methods = c.getMethods(); - for(int i=0;i