aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/testsuite/java.sun.tools/ClassPathTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/testsuite/java.sun.tools/ClassPathTest.java')
-rw-r--r--libjava/classpath/testsuite/java.sun.tools/ClassPathTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/classpath/testsuite/java.sun.tools/ClassPathTest.java b/libjava/classpath/testsuite/java.sun.tools/ClassPathTest.java
new file mode 100644
index 0000000..9e17cc3
--- /dev/null
+++ b/libjava/classpath/testsuite/java.sun.tools/ClassPathTest.java
@@ -0,0 +1,14 @@
+import sun.tools.java.*;
+
+public class ClassPathTest {
+ public static void main(String args[]) {
+ ClassPath cp =
+ new ClassPath((String)System.getProperties().get("java.class.path"));
+ ClassFile cf = cp.getFile("ClassPathTest.class");
+ try {
+ System.out.println("PASSED: "+cp.toString() +" "+ cf.toString());
+ } catch (Exception e) {
+ System.out.println("FAILED: " + e.toString());
+ }
+ }
+}