make/tools/classanalyzer/src/com/sun/classanalyzer/ConstantPoolAnalyzer.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -44,17 +44,16 @@
}
}
if (jdkhome == null) {
usage();
}
- ClassPath.setJDKHome(jdkhome);
- ClassPath.parseAllClassFiles();
+ ClassPaths cpaths = ClassPaths.newJDKClassPaths(jdkhome);
+ cpaths.parse();
}
private static void usage() {
System.out.println("Usage: ConstantPoolAnalyzer <options>");
System.out.println("Options: ");
System.out.println("\t-jdkhome <JDK home> where all jars will be parsed");
- System.out.println("\t-cpath <classpath> where classes and jars will be parsed");
System.exit(-1);
}
}