< prev index next >

test/tools/jdeps/Basic.java

Print this page
rev 2788 : 8068937: jdeps shows "not found" if target class has no reference other than its own package
Reviewed-by: alanb

*** 21,33 **** * questions. */ /* * @test ! * @bug 8003562 8005428 8015912 8027481 8048063 * @summary Basic tests for jdeps tool ! * @build Test p.Foo p.Bar javax.activity.NotCompactProfile * @run main Basic */ import java.io.File; import java.io.IOException; --- 21,33 ---- * questions. */ /* * @test ! * @bug 8003562 8005428 8015912 8027481 8048063 8068937 * @summary Basic tests for jdeps tool ! * @build Test p.Foo p.Bar p.C p.SubClass q.Gee javax.activity.NotCompactProfile * @run main Basic */ import java.io.File; import java.io.IOException;
*** 109,118 **** --- 109,131 ---- test(new File(testDir, "Test.class"), new String[] {"java.lang"}, new String[] {"compact1"}, new String[] {"-verbose:package", "-e", "java\\.lang\\..*"}); + // parse p.C, p.SubClass and q.* + // p.SubClass have no dependency other than p.C + // q.Gee depends on p.SubClass that should be found + test(testDir, + new String[] {"java.lang", "p"}, + new String[] {"compact1", testDir.getName()}, + new String[] {"-include", "p.C|p.SubClass|q\\..*"}); + test(testDir, + new String[] {"java.lang", "p"}, + new String[] {"compact1", testDir.getName()}, + new String[] {"-classpath", testDir.getPath(), "-include", "p.C|p.SubClass|q\\..*"}); + + // test -classpath and -include options test(null, new String[] {"java.lang", "java.util", "java.lang.management", "javax.activity", "javax.crypto"}, new String[] {"compact1", "compact1", "compact3", testDir.getName(), "compact1"},
< prev index next >