--- a/langtools/test/com/sun/javadoc/5093723/T5093723.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/5093723/T5093723.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,10 +33,8 @@
public class T5093723 extends JavadocTester {
- private static final String BUG_ID = "5093723";
-
private static final String[] ARGS = new String[] {
- "-d", BUG_ID + ".out", "-Xdoclint:none",
+ "-d", OUTPUT_DIR + ".out", "-Xdoclint:none",
SRC_DIR + "/DocumentedClass.java",
SRC_DIR + "/UndocumentedClass.java"
};
@@ -46,12 +44,4 @@
if (tester.runJavadoc(ARGS) != 0)
throw new AssertionError("non-zero return code from javadoc");
}
-
- public String getBugId() {
- return BUG_ID;
- }
-
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/AccessSummary/AccessSummary.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/AccessSummary/AccessSummary.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,30 +34,27 @@
public class AccessSummary extends JavadocTester {
- private static final String BUG_ID = "4637604-4775148";
- private static final String OUTPUT_DIR1 = "docs1-" + BUG_ID + "/";
-
/**
* Assign value for [ fileToSearch, stringToFind ]
*/
private static final String[][] TESTARRAY1 = {
// Test that the summary attribute appears
- { OUTPUT_DIR1 + "overview-summary.html",
+ { "overview-summary.html",
"summary=\"Packages table, listing packages, and an explanation\"" },
// Test that the summary attribute appears
- { OUTPUT_DIR1 + "p1/C1.html",
+ { "p1/C1.html",
"summary=\"Constructor Summary table, listing constructors, and an explanation\"" },
// Test that the summary attribute appears
- { OUTPUT_DIR1 + "constant-values.html",
+ { "constant-values.html",
"summary=\"Constant Field Values table, listing constant fields, and values\"" }
};
// First test with -header only
private static final String[] JAVADOC_ARGS = new String[] {
- "-d", OUTPUT_DIR1,
+ "-d", OUTPUT_DIR,
"-sourcepath", SRC_DIR,
"p1", "p2"};
@@ -70,18 +67,4 @@
tester.run(JAVADOC_ARGS, TESTARRAY1, new String[][] {});
tester.printSummary(); // Necessary for string search
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/MetaTag/MetaTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/MetaTag/MetaTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -39,8 +39,6 @@
public class MetaTag extends JavadocTester {
//Test information.
- private static final String BUG_ID = "4034096-4764726-6235799";
- private static final String OUTPUT_DIR = "docs-" + BUG_ID;
private static final SimpleDateFormat m_dateFormat = new SimpleDateFormat("yyyy-MM-dd");
//Javadoc arguments.
@@ -63,62 +61,62 @@
//Input for string search tests.
private static final String[][] TEST = {
- { OUTPUT_DIR + "/p1/C1.html",
+ { "p1/C1.html",
"<meta name=\"keywords\" content=\"p1.C1 class\">" },
- { OUTPUT_DIR + "/p1/C1.html",
+ { "p1/C1.html",
"<meta name=\"keywords\" content=\"field1\">" },
- { OUTPUT_DIR + "/p1/C1.html",
+ { "p1/C1.html",
"<meta name=\"keywords\" content=\"field2\">" },
- { OUTPUT_DIR + "/p1/C1.html",
+ { "p1/C1.html",
"<meta name=\"keywords\" content=\"method1()\">" },
- { OUTPUT_DIR + "/p1/C1.html",
+ { "p1/C1.html",
"<meta name=\"keywords\" content=\"method2()\">" },
- { OUTPUT_DIR + "/p1/package-summary.html",
+ { "p1/package-summary.html",
"<meta name=\"keywords\" content=\"p1 package\">" },
- { OUTPUT_DIR + "/overview-summary.html",
+ { "overview-summary.html",
"<meta name=\"keywords\" content=\"Overview, Sample Packages\">" },
//NOTE: Hopefully, this regression test is not run at midnight. If the output
//was generated yesterday and this test is run today, the test will fail.
- {OUTPUT_DIR + "/overview-summary.html",
+ { "overview-summary.html",
"<meta name=\"date\" "
+ "content=\"" + m_dateFormat.format(new Date()) + "\">"},
};
private static final String[][] NEGATED_TEST2 = {
//No keywords when -keywords is not used.
- { OUTPUT_DIR + "-2/p1/C1.html",
+ { "p1/C1.html",
"<META NAME=\"keywords\" CONTENT=\"p1.C1 class\">" },
- { OUTPUT_DIR + "-2/p1/C1.html",
+ { "p1/C1.html",
"<META NAME=\"keywords\" CONTENT=\"field1\">" },
- { OUTPUT_DIR + "-2/p1/C1.html",
+ { "p1/C1.html",
"<META NAME=\"keywords\" CONTENT=\"field2\">" },
- { OUTPUT_DIR + "-2/p1/C1.html",
+ { "p1/C1.html",
"<META NAME=\"keywords\" CONTENT=\"method1()\">" },
- { OUTPUT_DIR + "-2/p1/C1.html",
+ { "p1/C1.html",
"<META NAME=\"keywords\" CONTENT=\"method2()\">" },
- { OUTPUT_DIR + "-2/p1/package-summary.html",
+ { "p1/package-summary.html",
"<META NAME=\"keywords\" CONTENT=\"p1 package\">" },
- { OUTPUT_DIR + "-2/overview-summary.html",
+ { "overview-summary.html",
"<META NAME=\"keywords\" CONTENT=\"Overview Summary, Sample Packages\">" },
//The date metatag should not show up when -notimestamp is used.
//NOTE: Hopefully, this regression test is not run at midnight. If the output
//was generated yesterday and this test is run today, the test will fail.
- {OUTPUT_DIR + "-2/overview-summary.html",
+ { "overview-summary.html",
"<META NAME=\"date\" "
+ "CONTENT=\"" + m_dateFormat.format(new Date()) + "\">"},
};
@@ -133,18 +131,4 @@
tester.run(ARGS_NO_TIMESTAMP_NO_KEYWORDS, NO_TEST, NEGATED_TEST2);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/PackagesHeader/PackagesHeader.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/PackagesHeader/PackagesHeader.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,12 +37,9 @@
public class PackagesHeader extends JavadocTester {
//Test information.
- private static final String BUG_ID = "4766385";
- private static final String OUTPUT_DIR = "docs-" + BUG_ID;
-
- private static final String OUTPUT_DIR1 = "docs1-" + BUG_ID + "/";
- private static final String OUTPUT_DIR2 = "docs2-" + BUG_ID + "/";
- private static final String OUTPUT_DIR3 = "docs3-" + BUG_ID + "/";
+ private static final String OUTPUT_DIR1 = OUTPUT_DIR + "-1/";
+ private static final String OUTPUT_DIR2 = OUTPUT_DIR + "-2/";
+ private static final String OUTPUT_DIR3 = OUTPUT_DIR + "-3/";
/**
* Assign value for [ fileToSearch, stringToFind ]
@@ -50,7 +47,7 @@
private static final String[][] TESTARRAY1 = {
// Test that the -header shows up in the packages frame
- { OUTPUT_DIR1 + "overview-frame.html",
+ { "overview-frame.html",
"Main Frame Header" }
};
@@ -59,7 +56,7 @@
// Test that the -packagesheader string shows
// up in the packages frame
- { OUTPUT_DIR2 + "overview-frame.html",
+ { "overview-frame.html",
"Packages Frame Header" }
};
@@ -67,10 +64,10 @@
// Test that the both headers show up and are different
- { OUTPUT_DIR3 + "overview-frame.html",
+ { "overview-frame.html",
"Packages Frame Header" },
- { OUTPUT_DIR3 + "overview-summary.html",
+ { "overview-summary.html",
"Main Frame Header" }
};
@@ -110,18 +107,4 @@
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/T6735320/T6735320.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/T6735320/T6735320.java Tue Apr 22 17:57:40 2014 -0700
@@ -31,20 +31,11 @@
*/
public class T6735320 extends JavadocTester {
- private static final String BUG_ID = "6735320";
private static final String[] ARGS = new String[]{
- "-d", BUG_ID + ".out",
+ "-d", OUTPUT_DIR + ".out",
SRC_DIR + "/SerialFieldTest.java"
};
- public String getBugId() {
- return BUG_ID;
- }
-
- public String getBugName() {
- return getClass().getName();
- }
-
public static void main(String... args) {
T6735320 tester = new T6735320();
if (tester.runJavadoc(ARGS) == 0) {
--- a/langtools/test/com/sun/javadoc/_template/Template.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/_template/Template.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,10 +33,6 @@
public class Template extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "<BUG ID>";
- private static final String OUTPUT_DIR = "docs-" + BUG_ID;
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR
@@ -55,18 +51,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/_template/TemplateComplete.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/_template/TemplateComplete.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,10 +33,6 @@
public class TemplateComplete extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "<BUG ID>";
- private static final String OUTPUT_DIR = "docs-" + BUG_ID;
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR
@@ -51,6 +47,8 @@
//Input for file diff test.
+ private static final String DIFFDIR1 = null;
+ private static final String DIFFDIR2 = null;
private static final String[][] FILES_TO_DIFF = {};
/**
@@ -61,21 +59,7 @@
TemplateComplete tester = new TemplateComplete();
int actualExitCode = tester.run(ARGS, TEST, NEGATED_TEST);
tester.checkExitCode(EXPECTED_EXIT_CODE, actualExitCode);
- tester.runDiffs(FILES_TO_DIFF, false);
+ tester.runDiffs(DIFFDIR1, DIFFDIR2, FILES_TO_DIFF, false);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/constantValues/TestConstantValuesDriver.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/constantValues/TestConstantValuesDriver.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,9 +33,8 @@
*/
public class TestConstantValuesDriver extends JavadocTester {
- private static final String BUG_ID = "4504730-4526070-5077317";
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, SRC_DIR + "/TestConstantValues.java",
+ "-d", OUTPUT_DIR, SRC_DIR + "/TestConstantValues.java",
SRC_DIR + "/TestConstantValues2.java",
SRC_DIR + "/A.java"
};
@@ -47,10 +46,10 @@
public static void main(String[] args) {
String[][] tests = new String[5][2];
for (int i = 0; i < tests.length-1; i++) {
- tests[i][0] = BUG_ID + "/constant-values.html";
+ tests[i][0] = "constant-values.html";
tests[i][1] = "TEST"+(i+1)+"PASSES";
}
- tests[tests.length-1][0] = BUG_ID + "/constant-values.html";
+ tests[tests.length-1][0] = "constant-values.html";
tests[tests.length-1][1] = "<code>\"<Hello World>\"</code>";
TestConstantValuesDriver tester = new TestConstantValuesDriver();
tester.run(ARGS, tests, NO_TEST);
@@ -58,20 +57,6 @@
}
/**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
-
- /**
* @throws java.io.IOException Test 1 passes
* @throws java.io.IOException Test 2 passes
* @throws java.lang.NullPointerException comment three
--- a/langtools/test/com/sun/javadoc/dupThrowsTags/TestDupThrowsTags.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/dupThrowsTags/TestDupThrowsTags.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,9 +33,8 @@
*/
public class TestDupThrowsTags extends JavadocTester {
- private static final String BUG_ID = "4525364";
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, SRC_DIR + "/TestDupThrowsTags.java"
+ "-d", OUTPUT_DIR, SRC_DIR + "/TestDupThrowsTags.java"
};
/**
@@ -45,7 +44,7 @@
public static void main(String[] args) {
String[][] tests = new String[4][2];
for (int i = 0; i < tests.length; i++) {
- tests[i][0] = BUG_ID + "/TestDupThrowsTags.html";
+ tests[i][0] = "TestDupThrowsTags.html";
tests[i][1] = "Test "+(i+1)+" passes";
}
TestDupThrowsTags tester = new TestDupThrowsTags();
@@ -54,20 +53,6 @@
}
/**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
-
- /**
* @throws java.io.IOException Test 1 passes
* @throws java.io.IOException Test 2 passes
* @throws java.lang.NullPointerException Test 3 passes
--- a/langtools/test/com/sun/javadoc/lib/JavadocTester.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/lib/JavadocTester.java Tue Apr 22 17:57:40 2014 -0700
@@ -21,8 +21,6 @@
* questions.
*/
-import com.sun.javadoc.*;
-import java.util.*;
import java.io.*;
@@ -56,6 +54,7 @@
protected static final String SRC_DIR = System.getProperty("test.src", ".");
protected static final String JAVA_VERSION = System.getProperty("java.version");
+ protected static final String OUTPUT_DIR = "out";
protected static final String[][] NO_TEST = new String[][] {};
protected static final String[] NO_FILE_TEST = new String[] {};
@@ -105,11 +104,16 @@
public StringWriter warnings;
/**
- * The buffer of warning output..
+ * The buffer of warning output.
*/
public StringBuffer standardOut;
/**
+ * The output directory.
+ */
+ private File outputDir;
+
+ /**
* The current subtest number.
*/
private static int numTestsRun = 0;
@@ -131,18 +135,6 @@
}
/**
- * Return the bug id.
- * @return the bug id
- */
- public abstract String getBugId();
-
- /**
- * Return the name of the bug.
- * @return the name of the bug
- */
- public abstract String getBugName();
-
- /**
* Execute the tests.
*
* @param args the arguments to pass to Javadoc
@@ -206,6 +198,13 @@
+ javadocRunNum + ")...");
}
initOutputBuffers();
+ outputDir = new File(".");
+ for (int i = 0; i < args.length - 2; i++) {
+ if (args[i].equals("-d")) {
+ outputDir = new File(args[++i]);
+ break;
+ }
+ }
ByteArrayOutputStream stdout = new ByteArrayOutputStream();
PrintStream prevOut = System.out;
@@ -216,7 +215,7 @@
System.setErr(new PrintStream(stderr));
int returnCode = com.sun.tools.javadoc.Main.execute(
- getBugName(),
+ "javadoc",
new PrintWriter(errors, true),
new PrintWriter(warnings, true),
new PrintWriter(notices, true),
@@ -258,60 +257,53 @@
* Run array of tests on the generated files.
* This method accepts a fileTestArray for testing if a file is generated
* and a negatedFileTestArray for testing if a file is not found.
+ * The files are relative to the most recent output directory specified
+ * with -d.
*
- * @param testArray the array of file tests
- * @param negatedTestArray the array of negated file tests
+ * @param fileTestArray the array of file tests
+ * @param negatedFileTestArray the array of negated file tests
*/
public void runTestsOnFile(String[] fileTestArray, String[] negatedFileTestArray) {
- runTestsOnFile(fileTestArray, false);
- runTestsOnFile(negatedFileTestArray, true);
+ runTestsOnFile(outputDir, fileTestArray, false);
+ runTestsOnFile(outputDir, negatedFileTestArray, true);
}
/**
* Run the array of tests on the resulting HTML.
+ * The files are relative to the most recent output directory specified
+ * with -d.
*
* @param testArray the array of tests
* @param isNegated true if test is negated; false otherwise
*/
private void runTestsOnHTML(String[][] testArray , boolean isNegated) {
- for (int i = 0; i < testArray.length; i++) {
-
+ for (String[] test : testArray) {
numTestsRun++;
-
System.out.print("Running subtest #" + numTestsRun + "... ");
-
// Get string to find
- String stringToFind = testArray[i][1];
-
+ String stringToFind = test[1];
// Read contents of file into a string
String fileString;
try {
- fileString = readFileToString(testArray[i][0]);
+ fileString = readFileToString(outputDir, test[0]);
} catch (Error e) {
if (isNegated) {
- System.out.println( "FAILED" + "\n"
- + "for bug " + getBugId()
- + " (" + getBugName() + ") "
- + "due to "
- + e + "\n");
- continue;
+ System.out.println( "FAILED, due to " + e + "\n");
+ continue;
}
throw e;
}
// Find string in file's contents
boolean isFound = findString(fileString, stringToFind);
- if ((isNegated && !isFound) || (!isNegated && isFound) ) {
+ if ((isNegated && !isFound) || (!isNegated && isFound)) {
numTestsPassed += 1;
- System.out.println( "Passed" + "\n"
- + (isNegated ? "not found:" : "found:") + "\n"
- + stringToFind + " in " + testArray[i][0] + "\n");
+ System.out.println("Passed" + "\n"
+ + (isNegated ? "not found:" : "found:") + "\n"
+ + stringToFind + " in " + test[0] + "\n");
} else {
- System.out.println( "FAILED" + "\n"
- + "for bug " + getBugId()
- + " (" + getBugName() + ")" + "\n"
- + "when searching for:" + "\n"
- + stringToFind
- + " in " + testArray[i][0] + "\n");
+ System.out.println("FAILED, when searching for:" + "\n"
+ + stringToFind
+ + " in " + test[0] + "\n");
}
}
}
@@ -322,21 +314,15 @@
* @param testArray the array of file tests
* @param isNegated true if test is negated; false otherwise
*/
- private void runTestsOnFile(String[] testArray, boolean isNegated) {
- String fileName;
- String failedString;
- String passedString;
- for (int i = 0; i < testArray.length; i++) {
+ private void runTestsOnFile(File baseDir, String[] testArray, boolean isNegated) {
+ for (String fileName : testArray) {
numTestsRun++;
- fileName = testArray[i];
- failedString = "FAILED" + "\n"
- + "for bug " + getBugId() + " (" + getBugName() + ") "
- + "file (" + fileName + ") found" + "\n";
- passedString = "Passed" + "\n" +
- "file (" + fileName + ") not found" + "\n";
+ String failedString = "FAILED: file (" + fileName + ") found" + "\n";
+ String passedString = "Passed" + "\n" +
+ "file (" + fileName + ") not found" + "\n";
System.out.print("Running subtest #" + numTestsRun + "... ");
try {
- File file = new File(fileName);
+ File file = new File(baseDir, fileName);
if ((file.exists() && !isNegated) || (!file.exists() && isNegated)) {
numTestsPassed += 1;
System.out.println(passedString);
@@ -352,27 +338,33 @@
/**
* Iterate through the list of given file pairs and diff each file.
*
- * @param filePairs the pairs of files to diff.
- * @throws an Error is thrown if any differences are found between
+ * @param baseDir1 the directory containing the first set of files
+ * @param baseDir2 the directory containing the second set of files
+ * @param files the set of files to be compared
+ * @throws Error if any differences are found between
* file pairs.
*/
- public void runDiffs(String[][] filePairs) throws Error {
- runDiffs(filePairs, true);
+ public void runDiffs(String baseDir1, String baseDir2, String[] files) throws Error {
+ runDiffs(baseDir1, baseDir2, files, true);
}
/**
* Iterate through the list of given file pairs and diff each file.
*
- * @param filePairs the pairs of files to diff.
- * @param throwErrorIFNoMatch flag to indicate whether or not to throw
+ * @param baseDir1 the directory containing the first set of files
+ * @param baseDir2 the directory containing the second set of files
+ * @param files the set of files to be compared
+ * @param throwErrorIfNoMatch flag to indicate whether or not to throw
* an error if the files do not match.
*
- * @throws an Error is thrown if any differences are found between
- * file pairs and throwErrorIFNoMatch is true.
+ * @throws Error if any differences are found between
+ * file pairs and throwErrorIfNoMatch is true.
*/
- public void runDiffs(String[][] filePairs, boolean throwErrorIfNoMatch) throws Error {
- for (int i = 0; i < filePairs.length; i++) {
- diff(filePairs[i][0], filePairs[i][1], throwErrorIfNoMatch);
+ public void runDiffs(String baseDir1, String baseDir2, String[] files, boolean throwErrorIfNoMatch) throws Error {
+ File bd1 = new File(baseDir1);
+ File bd2 = new File(baseDir2);
+ for (String file : files) {
+ diff(bd1, bd2, file, throwErrorIfNoMatch);
}
}
@@ -392,8 +384,7 @@
actualExitCode);
numTestsPassed++;
} else {
- System.out.println( "FAILED" + "\n" + "for bug " + getBugId()
- + " (" + getBugName() + ")" + "\n" + "Expected return code " +
+ System.out.println( "FAILED: expected return code " +
expectedExitCode + " but got " + actualExitCode);
}
}
@@ -410,8 +401,7 @@
// Test failed
throw new Error("\n" + (numTestsRun - numTestsPassed)
+ " of " + (numTestsRun)
- + " subtests failed for bug " + getBugId()
- + " (" + getBugName() + ")" + "\n");
+ + " subtests failed\n");
}
}
@@ -432,28 +422,39 @@
* @return the file in string format
*/
public String readFileToString(String fileName) throws Error {
- if (fileName.equals(ERROR_OUTPUT)) {
- return getErrorOutput();
- } else if (fileName.equals(NOTICE_OUTPUT)) {
- return getNoticeOutput();
- } else if (fileName.equals(WARNING_OUTPUT)) {
- return getWarningOutput();
- } else if (fileName.equals(STANDARD_OUTPUT)) {
- return getStandardOutput();
+ return readFileToString(outputDir, fileName);
+ }
+
+ /**
+ * Read the file and return it as a string.
+ *
+ * @param baseDir the directory in which to locate the file
+ * @param fileName the name of the file to read
+ * @return the file in string format
+ */
+ private String readFileToString(File baseDir, String fileName) throws Error {
+ switch (fileName) {
+ case ERROR_OUTPUT:
+ return getErrorOutput();
+ case NOTICE_OUTPUT:
+ return getNoticeOutput();
+ case WARNING_OUTPUT:
+ return getWarningOutput();
+ case STANDARD_OUTPUT:
+ return getStandardOutput();
}
try {
- File file = new File(fileName);
+ File file = new File(baseDir, fileName);
if ( !file.exists() ) {
System.out.println("\n" + "FILE DOES NOT EXIST: " + fileName);
}
- BufferedReader in = new BufferedReader(new FileReader(file));
-
- // Create an array of characters the size of the file
- char[] allChars = new char[(int)file.length()];
-
- // Read the characters into the allChars array
- in.read(allChars, 0, (int)file.length());
- in.close();
+ char[] allChars;
+ try (BufferedReader in = new BufferedReader(new FileReader(file))) {
+ // Create an array of characters the size of the file
+ allChars = new char[(int)file.length()];
+ // Read the characters into the allChars array
+ in.read(allChars, 0, (int)file.length());
+ }
// Convert to a string
String allCharsString = new String(allChars);
@@ -470,22 +471,24 @@
/**
* Compare the two given files.
*
- * @param file1 the first file to compare.
- * @param file2 the second file to compare.
+ * @param baseDir1 the directory in which to locate the first file
+ * @param baseDir2 the directory in which to locate the second file
+ * @param file the file to compare in the two base directories
* @param throwErrorIFNoMatch flag to indicate whether or not to throw
* an error if the files do not match.
* @return true if the files are the same and false otherwise.
*/
- public boolean diff(String file1, String file2, boolean throwErrorIFNoMatch) throws Error {
- String file1Contents = readFileToString(file1);
- String file2Contents = readFileToString(file2);
+ private boolean diff(File baseDir1, File baseDir2, String file,
+ boolean throwErrorIFNoMatch) throws Error {
+ String file1Contents = readFileToString(baseDir1, file);
+ String file2Contents = readFileToString(baseDir2, file);
numTestsRun++;
if (file1Contents.trim().compareTo(file2Contents.trim()) == 0) {
- System.out.println("Diff successful: " + file1 + ", " + file2);
+ System.out.println("Diff successful: " + new File(baseDir1, file) + ", " + new File(baseDir2, file));
numTestsPassed++;
return true;
} else if (throwErrorIFNoMatch) {
- throw new Error("Diff failed: " + file1 + ", " + file2);
+ throw new Error("Diff failed: " + new File(baseDir1, file) + ", " + new File(baseDir2, file));
} else {
return false;
}
@@ -559,12 +562,12 @@
destDirObj.mkdir();
}
String[] files = targetDirObj.list();
- for (int i = 0; i < files.length; i++) {
- File srcFile = new File(targetDirObj, files[i]);
- File destFile = new File(destDirObj, files[i]);
+ for (String file : files) {
+ File srcFile = new File(targetDirObj, file);
+ File destFile = new File(destDirObj, file);
if (srcFile.isFile()) {
System.out.println("Copying " + srcFile + " to " + destFile);
- copyFile(destFile, srcFile);
+ copyFile(destFile, srcFile);
} else if(srcFile.isDirectory()) {
copyDir(srcFile.getAbsolutePath(), destDirObj.getAbsolutePath());
}
@@ -577,13 +580,15 @@
/**
* Copy source file to destination file.
*
+ * @param destfile the destination file
+ * @param srcfile the source file
* @throws SecurityException
* @throws IOException
*/
public static void copyFile(File destfile, File srcfile)
throws IOException {
byte[] bytearr = new byte[512];
- int len = 0;
+ int len;
FileInputStream input = new FileInputStream(srcfile);
File destDir = destfile.getParentFile();
destDir.mkdirs();
@@ -592,8 +597,7 @@
while ((len = input.read(bytearr)) != -1) {
output.write(bytearr, 0, len);
}
- } catch (FileNotFoundException exc) {
- } catch (SecurityException exc) {
+ } catch (FileNotFoundException | SecurityException exc) {
} finally {
input.close();
output.close();
--- a/langtools/test/com/sun/javadoc/testAbsLinkPath/TestAbsLinkPath.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testAbsLinkPath/TestAbsLinkPath.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,9 +34,8 @@
public class TestAbsLinkPath extends JavadocTester {
- private static final String BUG_ID = "4640745";
private static final String[][] TEST = {
- {"tmp/pkg1/C1.html", "C2.html"}};
+ { "pkg1/C1.html", "C2.html"}};
private static final String[] ARGS1 =
new String[] {
@@ -56,18 +55,4 @@
tester.run(ARGS2, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testAbstractMethod/TestAbstractMethod.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testAbstractMethod/TestAbstractMethod.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,18 +35,17 @@
public class TestAbstractMethod extends JavadocTester {
//Test information.
- private static final String BUG_ID = "8004891";
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<td class=\"colFirst\"><code>default void</code></td>"},
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<caption><span id=\"t0\" class=\"activeTableTab\"><span>" +
"All Methods</span><span class=\"tabEnd\"> </span></span>" +
"<span id=\"t2\" class=\"tableTab\"><span>" +
@@ -57,7 +56,7 @@
"</span><span id=\"t5\" class=\"tableTab\"><span>" +
"<a href=\"javascript:show(16);\">Default Methods</a></span>" +
"<span class=\"tabEnd\"> </span></span></caption>"},
- {BUG_ID + "/pkg/B.html",
+ { "pkg/B.html",
"<caption><span id=\"t0\" class=\"activeTableTab\"><span>" +
"All Methods</span><span class=\"tabEnd\"> </span></span>" +
"<span id=\"t2\" class=\"tableTab\"><span>" +
@@ -68,9 +67,9 @@
"<span id=\"t4\" class=\"tableTab\"><span>" +
"<a href=\"javascript:show(8);\">Concrete Methods</a></span>" +
"<span class=\"tabEnd\"> </span></span></caption>"},
- {BUG_ID + "/pkg/B.html",
+ { "pkg/B.html",
"<td class=\"colFirst\"><code>abstract void</code></td>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<caption><span id=\"t0\" class=\"activeTableTab\"><span>" +
"All Methods</span><span class=\"tabEnd\"> </span></span>" +
"<span id=\"t2\" class=\"tableTab\"><span>" +
@@ -79,18 +78,18 @@
"<span id=\"t5\" class=\"tableTab\"><span>" +
"<a href=\"javascript:show(16);\">Default Methods</a></span>" +
"<span class=\"tabEnd\"> </span></span></caption>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<td class=\"colFirst\"><code>default void</code></td>"}
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<td class=\"colFirst\"><code>abstract void</code></td>"},
- {BUG_ID + "/pkg/B.html",
+ { "pkg/B.html",
"<span><a href=\"javascript:show(16);\">Default Methods</a></span>" +
"<span class=\"tabEnd\"> </span>"},
- {BUG_ID + "/pkg/B.html",
+ { "pkg/B.html",
"<td class=\"colFirst\"><code>default void</code></td>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<span><a href=\"javascript:show(4);\">Abstract Methods</a></span>" +
"<span class=\"tabEnd\"> </span>"}
};
@@ -104,18 +103,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testAnchorNames/TestAnchorNames.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testAnchorNames/TestAnchorNames.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,41 +33,40 @@
public class TestAnchorNames extends JavadocTester {
- private static final String BUG_ID = "8025633";
//Input for string search tests.
private static final String[][] TEST = {
//Test some section markers and links to these markers
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"skip.navbar.top\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"#skip.navbar.top\" title=\"Skip navigation links\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"nested.class.summary\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"#nested.class.summary\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"method.summary\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"#method.summary\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"field.detail\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"#field.detail\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"constructor.detail\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"#constructor.detail\">"
},
@@ -75,170 +74,170 @@
//The marker for this appears in the serialized-form.html which we will
//test below
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../serialized-form.html#pkg1.RegClass\">"
},
//Test some fields
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"Z:Z_\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#Z:Z_\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"Z:Z_:D\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#Z:Z_:D\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"Z:Z:D_\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#Z:Z:D_\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"Z:Z:Dfield\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#Z:Z:Dfield\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"fieldInCla:D:D\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#fieldInCla:D:D\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"S_:D:D:D:D:DINT\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#S_:D:D:D:D:DINT\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"method:D:D\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#method:D:D\">"
},
- {BUG_ID + "/pkg1/DeprMemClass.html",
+ { "pkg1/DeprMemClass.html",
"<a name=\"Z:Z_field_In_Class\">"
},
- {BUG_ID + "/pkg1/DeprMemClass.html",
+ { "pkg1/DeprMemClass.html",
"<a href=\"../pkg1/DeprMemClass.html#Z:Z_field_In_Class\">"
},
//Test constructor
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"RegClass-java.lang.String-int-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#RegClass-java.lang.String-int-\">"
},
//Test some methods
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"Z:Z_methodInClass-java.lang.String-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#Z:Z_methodInClass-java.lang.String-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"method--\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#method--\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"foo-java.util.Map-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#foo-java.util.Map-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"methodInCla:Ds-java.lang.String:A-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#methodInCla:Ds-java.lang.String:A-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"Z:Z_methodInClas:D-java.lang.String-int-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#Z:Z_methodInClas:D-java.lang.String-int-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"methodD-pkg1.RegClass.:DA-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#methodD-pkg1.RegClass.:DA-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a name=\"methodD-pkg1.RegClass.D:A-\">"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
"<a href=\"../pkg1/RegClass.html#methodD-pkg1.RegClass.D:A-\">"
},
- {BUG_ID + "/pkg1/DeprMemClass.html",
+ { "pkg1/DeprMemClass.html",
"<a name=\"Z:Z:Dmethod_In_Class--\">"
},
- {BUG_ID + "/pkg1/DeprMemClass.html",
+ { "pkg1/DeprMemClass.html",
"<a href=\"../pkg1/DeprMemClass.html#Z:Z:Dmethod_In_Class--\">"
},
//Test enum
- {BUG_ID + "/pkg1/RegClass.Te$t_Enum.html",
+ { "pkg1/RegClass.Te$t_Enum.html",
"<a name=\"Z:Z:DFLD2\">"
},
- {BUG_ID + "/pkg1/RegClass.Te$t_Enum.html",
+ { "pkg1/RegClass.Te$t_Enum.html",
"<a href=\"../pkg1/RegClass.Te$t_Enum.html#Z:Z:DFLD2\">"
},
//Test nested class
- {BUG_ID + "/pkg1/RegClass._NestedClas$.html",
+ { "pkg1/RegClass._NestedClas$.html",
"<a name=\"Z:Z_NestedClas:D--\">"
},
- {BUG_ID + "/pkg1/RegClass._NestedClas$.html",
+ { "pkg1/RegClass._NestedClas$.html",
"<a href=\"../pkg1/RegClass._NestedClas$.html#Z:Z_NestedClas:D--\">"
},
//Test class use page
- {BUG_ID + "/pkg1/class-use/DeprMemClass.html",
+ { "pkg1/class-use/DeprMemClass.html",
"<a href=\"../../pkg1/RegClass.html#d____mc\">"
},
//Test deprecated list page
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<a href=\"pkg1/DeprMemClass.html#Z:Z_field_In_Class\">"
},
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<a href=\"pkg1/DeprMemClass.html#Z:Z:Dmethod_In_Class--\">"
},
//Test constant values page
- {BUG_ID + "/constant-values.html",
+ { "constant-values.html",
"<a href=\"pkg1/RegClass.html#S_:D:D:D:D:DINT\">"
},
//Test serialized form page
//This is the marker for the link that appears in the pkg1.RegClass.html page
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<a name=\"pkg1.RegClass\">"
},
//Test member name index page
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a name=\"I:Z:Z:D\">"
},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"#I:Z:Z:D\">$"
},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"#I:Z:Z_\">_"
}
};
@@ -246,22 +245,22 @@
private static final String[][] NEGATED_TEST = {
//The marker name conversion should only affect HTML anchors. It should not
//affect the lables.
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
" Z:Z_"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
" Z:Z:Dfield"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
" Z:Z_field_In_Class"
},
- {BUG_ID + "/pkg1/RegClass.html",
+ { "pkg1/RegClass.html",
" S_:D:D:D:D:DINT"
},
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-use", "pkg1"
};
/**
@@ -273,18 +272,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testAnnotationOptional/TestAnnotationOptional.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testAnnotationOptional/TestAnnotationOptional.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,17 +35,14 @@
public class TestAnnotationOptional extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "NO_BUG_ID_YET";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/AnnotationOptional.html",
+ { "pkg/AnnotationOptional.html",
"<a name=\"annotation.type.element.detail\">"
}
};
@@ -58,18 +55,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,47 +34,44 @@
public class TestAnnotationTypes extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4973609-8015249";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/AnnotationTypeField.html",
+ { "pkg/AnnotationTypeField.html",
"<li>Summary: </li>\n" +
"<li><a href=\"#annotation.type." +
"field.summary\">Field</a> | </li>"},
- {BUG_ID + "/pkg/AnnotationTypeField.html",
+ { "pkg/AnnotationTypeField.html",
"<li>Detail: </li>\n" +
"<li><a href=\"#annotation.type." +
"field.detail\">Field</a> | </li>"},
- {BUG_ID + "/pkg/AnnotationTypeField.html",
+ { "pkg/AnnotationTypeField.html",
"<!-- =========== ANNOTATION TYPE FIELD SUMMARY =========== -->"},
- {BUG_ID + "/pkg/AnnotationTypeField.html",
+ { "pkg/AnnotationTypeField.html",
"<h3>Field Summary</h3>"},
- {BUG_ID + "/pkg/AnnotationTypeField.html",
+ { "pkg/AnnotationTypeField.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../" +
"pkg/AnnotationTypeField.html#DEFAULT_NAME\">DEFAULT_NAME</a></span>" +
"</code> </td>"},
- {BUG_ID + "/pkg/AnnotationTypeField.html",
+ { "pkg/AnnotationTypeField.html",
"<!-- ============ ANNOTATION TYPE FIELD DETAIL =========== -->"},
- {BUG_ID + "/pkg/AnnotationTypeField.html",
+ { "pkg/AnnotationTypeField.html",
"<h4>DEFAULT_NAME</h4>\n" +
"<pre>public static final java." +
"lang.String DEFAULT_NAME</pre>"},
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"<li>Summary: </li>\n" +
"<li>Field | </li>"},
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"<li>Detail: </li>\n" +
"<li>Field | </li>"},
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"<HR>\n\n" +
"<P>\n\n" +
"<P>" +
@@ -90,18 +87,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testBackSlashInLink/TestBackSlashInLink.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testBackSlashInLink/TestBackSlashInLink.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,12 +35,11 @@
public class TestBackSlashInLink extends JavadocTester {
- private static final String BUG_ID = "4511110";
private static final String[][] TEST = {
- {BUG_ID + "/C.html", "src-html/C.html#line.7"}};
+ { "C.html", "src-html/C.html#line.7"}};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-linksource", SRC_DIR + "/C.java"};
/**
@@ -52,18 +51,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testBadPackageFileInJar/TestBadPackageFileInJar.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testBadPackageFileInJar/TestBadPackageFileInJar.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,10 +35,6 @@
public class TestBadPackageFileInJar extends JavadocTester {
- protected static final String FS = System.getProperty("file.separator");
-
- private static final String BUG_ID = "4691095";
-
private static final String[][] TEST =
new String[][] {
{ERROR_OUTPUT,
@@ -47,7 +43,7 @@
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-classpath",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-classpath",
SRC_DIR + "/badPackageFileInJar.jar", "pkg"};
@@ -60,18 +56,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testBadSourceFile/TestBadSourceFile.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testBadSourceFile/TestBadSourceFile.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,12 +35,9 @@
public class TestBadSourceFile extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4835749";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, SRC_DIR + "/C2.java"
+ "-Xdoclint:none", "-d", OUTPUT_DIR, SRC_DIR + "/C2.java"
};
/**
@@ -53,18 +50,4 @@
tester.checkExitCode(0, exitCode);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testBaseClass/TestBaseClass.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testBaseClass/TestBaseClass.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,7 +35,6 @@
public class TestBaseClass extends JavadocTester {
- private static final String BUG_ID = "4197513";
private static final String[] ARGS =
new String[] {
"-sourcepath", SRC_DIR,
@@ -52,18 +51,4 @@
throw new Error("Javadoc failed to execute.");
}
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testBreakIterator/TestBreakIterator.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testBreakIterator/TestBreakIterator.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,13 +37,12 @@
public class TestBreakIterator extends JavadocTester {
- private static final String BUG_ID = "4165985";
private static final String[][] TEST = {
- {BUG_ID + "/pkg/BreakIteratorTest.html",
+ { "pkg/BreakIteratorTest.html",
"The class is empty (i.e. it has no members)."}};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-breakiterator", "pkg"};
/**
@@ -55,18 +54,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testCRLineSeparator/TestCRLineSeparator.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testCRLineSeparator/TestCRLineSeparator.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,17 +37,14 @@
public class TestCRLineSeparator extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4979486-8014636";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", ".", "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", ".", "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/MyClass.html", "Line 1\n" +
+ { "pkg/MyClass.html", "Line 1\n" +
" Line 2"}
};
@@ -63,20 +60,6 @@
tester.printSummary();
}
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
-
// recursively copy files from fromDir to toDir, replacing newlines
// with \r
static void initFiles(File fromDir, File toDir, String f) throws IOException {
--- a/langtools/test/com/sun/javadoc/testCharset/TestCharset.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testCharset/TestCharset.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,25 +34,22 @@
public class TestCharset extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "7052170";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-charset", "UTF-8", "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-charset", "UTF-8", "-sourcepath", SRC_DIR, "pkg"
};
private static final String[][] TEST = {
- {BUG_ID + "/index.html",
+ { "index.html",
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"},
- {BUG_ID + "/pkg/Foo.html",
+ { "pkg/Foo.html",
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"}
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/index.html",
+ { "index.html",
"<meta http-equiv=\"Content-Type\" content=\"text/html\" charset=\"UTF-8\">"},
- {BUG_ID + "/pkg/Foo.html",
+ { "pkg/Foo.html",
"<meta http-equiv=\"Content-Type\" content=\"text/html\" charset=\"UTF-8\">"}
};
@@ -65,18 +62,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testClassCrossReferences/TestClassCrossReferences.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testClassCrossReferences/TestClassCrossReferences.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,20 +34,19 @@
public class TestClassCrossReferences extends JavadocTester {
- private static final String BUG_ID = "4652655-4857717";
private static final String[][] TEST = {
- {BUG_ID + "/C.html",
+ { "C.html",
"<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/package-summary.html?is-external=true\"><code>Link to math package</code></a>"},
- {BUG_ID + "/C.html",
+ { "C.html",
"<a href=\"http://java.sun.com/j2se/1.4/docs/api/javax/swing/text/AbstractDocument.AttributeContext.html?is-external=true\" " +
"title=\"class or interface in javax.swing.text\"><code>Link to AttributeContext innerclass</code></a>"},
- {BUG_ID + "/C.html",
+ { "C.html",
"<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/BigDecimal.html?is-external=true\" " +
"title=\"class or interface in java.math\"><code>Link to external class BigDecimal</code></a>"},
- {BUG_ID + "/C.html",
+ { "C.html",
"<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/BigInteger.html?is-external=true#gcd-java.math.BigInteger-\" " +
"title=\"class or interface in java.math\"><code>Link to external member gcd</code></a>"},
- {BUG_ID + "/C.html",
+ { "C.html",
"<dl>\n" +
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code>toString</code> in class <code>java.lang.Object</code></dd>\n" +
@@ -55,7 +54,7 @@
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-linkoffline", "http://java.sun.com/j2se/1.4/docs/api/",
SRC_DIR, SRC_DIR + "/C.java"};
@@ -68,18 +67,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testClassTree/TestClassTree.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testClassTree/TestClassTree.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,22 +37,19 @@
public class TestClassTree extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4632553-4973607";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/package-tree.html",
+ { "pkg/package-tree.html",
"<ul>\n" +
"<li type=\"circle\">pkg.<a href=\"../pkg/ParentClass.html\" " +
"title=\"class in pkg\"><span class=\"typeNameLink\">ParentClass</span></a>"},
- {BUG_ID + "/pkg/package-tree.html",
+ { "pkg/package-tree.html",
"<h2 title=\"Annotation Type Hierarchy\">Annotation Type Hierarchy</h2>\n" +
"<ul>\n" +
"<li type=\"circle\">pkg.<a href=\"../pkg/AnnotationType.html\" " +
@@ -60,7 +57,7 @@
"(implements java.lang.annotation.Annotation)</li>\n" +
"</ul>"},
- {BUG_ID + "/pkg/package-tree.html",
+ { "pkg/package-tree.html",
"<h2 title=\"Enum Hierarchy\">Enum Hierarchy</h2>\n" +
"<ul>\n" +
"<li type=\"circle\">java.lang.Object\n" +
@@ -78,7 +75,7 @@
},
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/package-tree.html",
+ { "pkg/package-tree.html",
"<li type=\"circle\">class pkg.<a href=\"../pkg/ParentClass.html\" " +
"title=\"class in pkg\"><span class=\"typeNameLink\">ParentClass</span></a></li>"}
};
@@ -92,18 +89,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testCmndLineClass/TestCmndLineClass.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testCmndLineClass/TestCmndLineClass.java Tue Apr 22 17:57:40 2014 -0700
@@ -52,15 +52,14 @@
SRC_DIR + "/pkg2/C3.java",
SRC_DIR + "/pkg2/C4.java"
};
- private static final String[][] FILES_TO_DIFF = {
- {OUTPUT_DIR1 + "/C5.html", OUTPUT_DIR2 + "/C5.html"},
- {OUTPUT_DIR2 + "/pkg1/C1.html", OUTPUT_DIR2 + "/pkg1/C1.html"},
- {OUTPUT_DIR1 + "/pkg1/C2.html", OUTPUT_DIR2 + "/pkg1/C2.html"},
- {OUTPUT_DIR1 + "/pkg2/C3.html", OUTPUT_DIR2 + "/pkg2/C3.html"},
- {OUTPUT_DIR1 + "/pkg2/C4.html", OUTPUT_DIR2 + "/pkg2/C4.html"}
+ private static final String[] FILES_TO_DIFF = {
+ "C5.html",
+ "pkg1/C1.html",
+ "pkg1/C2.html",
+ "pkg2/C3.html",
+ "pkg2/C4.html"
};
- private static final String BUG_ID = "4506980";
/**
* The entry point of the test.
@@ -70,20 +69,6 @@
TestCmndLineClass tester = new TestCmndLineClass();
tester.run(ARGS1, NO_TEST, NO_TEST);
tester.run(ARGS2, NO_TEST, NO_TEST);
- tester.runDiffs(FILES_TO_DIFF);
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
+ tester.runDiffs(OUTPUT_DIR1, OUTPUT_DIR2, FILES_TO_DIFF);
}
}
--- a/langtools/test/com/sun/javadoc/testCompletionFailure/TestCompletionFailure.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testCompletionFailure/TestCompletionFailure.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,8 +33,6 @@
public class TestCompletionFailure extends JavadocTester {
- private static final String BUG_ID = "8027977";
-
//Input for string search tests.
private static final String[][] NEGATED_TEST = {
{ERROR_OUTPUT, "TestCompletionFailure: error - " +
@@ -44,7 +42,7 @@
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"
};
/**
@@ -56,18 +54,4 @@
tester.run(ARGS, NO_TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testConstantValuesPage/TestConstantValuesPage.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testConstantValuesPage/TestConstantValuesPage.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,13 +35,12 @@
public class TestConstantValuesPage extends JavadocTester {
- private static final String BUG_ID = "4681599";
private static final String[][] NEGATED_TEST = {
{NOTICE_OUTPUT, "constant-values.html..."}
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "foo"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "foo"};
/**
* The entry point of the test.
@@ -52,18 +51,4 @@
tester.run(ARGS, NO_TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testConstructorIndent/TestConstructorIndent.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testConstructorIndent/TestConstructorIndent.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,17 +35,14 @@
public class TestConstructorIndent extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4904037";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/C.html", "<div class=\"block\">" +
+ { "C.html", "<div class=\"block\">" +
"This is just a simple constructor.</div>\n" +
"<dl>\n" +
"<dt><span class=\"paramLabel\">Parameters:</span></dt>\n" +
@@ -63,18 +60,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testConstructors/TestConstructors.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testConstructors/TestConstructors.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,11 +33,9 @@
public class TestConstructors extends JavadocTester {
- private static final String BUG_ID = "8025524";
-
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<dt><span class=\"seeLabel\">See Also:</span></dt>\n" +
"<dd><a href=\"../pkg1/Outer.Inner.html#Inner--\"><code>Inner()</code></a>, \n" +
"<a href=\"../pkg1/Outer.Inner.html#Inner-int-\"><code>Inner(int)</code></a>, \n" +
@@ -46,79 +44,79 @@
"<a href=\"../pkg1/Outer.html#Outer--\"><code>Outer()</code></a>, \n" +
"<a href=\"../pkg1/Outer.html#Outer-int-\"><code>Outer(int)</code></a>"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"Link: <a href=\"../pkg1/Outer.Inner.html#Inner--\"><code>Inner()</code></a>, " +
"<a href=\"../pkg1/Outer.html#Outer-int-\"><code>Outer(int)</code></a>, " +
"<a href=\"../pkg1/Outer.Inner.NestedInner.html#NestedInner-int-\"><code>" +
"NestedInner(int)</code></a>"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<a href=\"../pkg1/Outer.html#Outer--\">Outer</a></span>()"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<a name=\"Outer--\">"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<a href=\"../pkg1/Outer.html#Outer-int-\">Outer</a></span>(int i)"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<a name=\"Outer-int-\">"
},
- {BUG_ID + "/pkg1/Outer.Inner.html",
+ { "pkg1/Outer.Inner.html",
"<a href=\"../pkg1/Outer.Inner.html#Inner--\">Inner</a></span>()"
},
- {BUG_ID + "/pkg1/Outer.Inner.html",
+ { "pkg1/Outer.Inner.html",
"<a name=\"Inner--\">"
},
- {BUG_ID + "/pkg1/Outer.Inner.html",
+ { "pkg1/Outer.Inner.html",
"<a href=\"../pkg1/Outer.Inner.html#Inner-int-\">Inner</a></span>(int i)"
},
- {BUG_ID + "/pkg1/Outer.Inner.html",
+ { "pkg1/Outer.Inner.html",
"<a name=\"Inner-int-\">"
},
- {BUG_ID + "/pkg1/Outer.Inner.NestedInner.html",
+ { "pkg1/Outer.Inner.NestedInner.html",
"<a href=\"../pkg1/Outer.Inner.NestedInner.html#NestedInner--\">NestedInner</a></span>()"
},
- {BUG_ID + "/pkg1/Outer.Inner.NestedInner.html",
+ { "pkg1/Outer.Inner.NestedInner.html",
"<a name=\"NestedInner--\">"
},
- {BUG_ID + "/pkg1/Outer.Inner.NestedInner.html",
+ { "pkg1/Outer.Inner.NestedInner.html",
"<a href=\"../pkg1/Outer.Inner.NestedInner.html#NestedInner-int-\">NestedInner</a></span>(int i)"
},
- {BUG_ID + "/pkg1/Outer.Inner.NestedInner.html",
+ { "pkg1/Outer.Inner.NestedInner.html",
"<a name=\"NestedInner-int-\">"
}
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg1/Outer.Inner.html",
+ { "pkg1/Outer.Inner.html",
"Outer.Inner--"
},
- {BUG_ID + "/pkg1/Outer.Inner.html",
+ { "pkg1/Outer.Inner.html",
"Outer.Inner-int-"
},
- {BUG_ID + "/pkg1/Outer.Inner.NestedInner.html",
+ { "pkg1/Outer.Inner.NestedInner.html",
"Outer.Inner.NestedInner--"
},
- {BUG_ID + "/pkg1/Outer.Inner.NestedInner.html",
+ { "pkg1/Outer.Inner.NestedInner.html",
"Outer.Inner.NestedInner-int-"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<a href=\"../pkg1/Outer.Inner.html#Outer.Inner--\"><code>Outer.Inner()</code></a>"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<a href=\"../pkg1/Outer.Inner.html#Outer.Inner-int-\"><code>Outer.Inner(int)</code></a>"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<a href=\"../pkg1/Outer.Inner.NestedInner.html#Outer.Inner.NestedInner--\"><code>Outer.Inner.NestedInner()</code></a>"
},
- {BUG_ID + "/pkg1/Outer.html",
+ { "pkg1/Outer.html",
"<a href=\"../pkg1/Outer.Inner.NestedInner.html#Outer.Inner.NestedInner-int-\"><code>Outer.Inner.NestedInner(int)</code></a>"
}
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"
};
/**
@@ -130,18 +128,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testCustomTag/TestCustomTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testCustomTag/TestCustomTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,28 +33,25 @@
public class TestCustomTag extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8006248";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-tagletpath", SRC_DIR,
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-tagletpath", SRC_DIR,
"-taglet", "taglets.CustomTag", "-sourcepath",
SRC_DIR, SRC_DIR + "/TagTestClass.java"
};
private static final String[] ARGS1 = new String[] {
- "-d", BUG_ID + "-1", "-tagletpath",
+ "-d", OUTPUT_DIR + "-1", "-tagletpath",
SRC_DIR, "-taglet", "taglets.CustomTag",
"-sourcepath", SRC_DIR, SRC_DIR + "/TagTestClass.java"
};
private static final String[] ARGS2 = new String[] {
- "-Xdoclint:none", "-d", BUG_ID + "-2", "-sourcepath",
+ "-Xdoclint:none", "-d", OUTPUT_DIR + "-2", "-sourcepath",
SRC_DIR, SRC_DIR + "/TagTestClass.java"
};
private static final String[] ARGS3 = new String[] {
- "-d", BUG_ID + "-3", "-sourcepath",
+ "-d", OUTPUT_DIR + "-3", "-sourcepath",
SRC_DIR, SRC_DIR + "/TagTestClass.java"
};
@@ -94,18 +91,4 @@
tester.run(ARGS3, TEST3, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testDeprecatedDocs/TestDeprecatedDocs.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testDeprecatedDocs/TestDeprecatedDocs.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,19 +33,16 @@
public class TestDeprecatedDocs extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4927552";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
private static final String TARGET_FILE =
- BUG_ID + "/deprecated-list.html";
+ "deprecated-list.html";
private static final String TARGET_FILE2 =
- BUG_ID + "/pkg/DeprecatedClassByAnnotation.html";
+ "pkg/DeprecatedClassByAnnotation.html";
//Input for string search tests.
private static final String[][] TEST = {
@@ -101,18 +98,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testDocEncoding/TestDocEncoding.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testDocEncoding/TestDocEncoding.java Tue Apr 22 17:57:40 2014 -0700
@@ -38,12 +38,9 @@
public class TestDocEncoding extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8000743";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID,
+ "-d", OUTPUT_DIR,
"-docencoding", "Cp930",
"-sourcepath", SRC_DIR,
"-notimestamp",
@@ -51,7 +48,7 @@
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"body {\n" +
" background-color:#ffffff;"}
};
@@ -65,19 +62,5 @@
tester.run(ARGS, NO_TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testDocErrorReporter/TestDocErrorReporter.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testDocErrorReporter/TestDocErrorReporter.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,12 +35,9 @@
public class TestDocErrorReporter extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4927928";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-encoding", "xyz",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-encoding", "xyz",
SRC_DIR + "/TestDocErrorReporter.java"
};
@@ -57,18 +54,4 @@
tester.checkExitCode(EXPECTED_EXIT_CODE, actualExitCode);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testDocFileDir/TestDocFileDir.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testDocFileDir/TestDocFileDir.java Tue Apr 22 17:57:40 2014 -0700
@@ -39,24 +39,18 @@
public class TestDocFileDir extends JavadocTester {
- private static final String BUG_ID = "4258405-4973606";
-
private static final String[][] TEST1 = {
- {BUG_ID + "-1/pkg/doc-files/testfile.txt",
+ { "pkg/doc-files/testfile.txt",
"This doc file did not get trashed."}
};
private static final String[] FILE_TEST2 = {
- BUG_ID + "-2/pkg/doc-files/subdir-used1" +
- "/testfile.txt",
- BUG_ID + "-2/pkg/doc-files/subdir-used2" +
- "/testfile.txt"
+ "pkg/doc-files/subdir-used1/testfile.txt",
+ "pkg/doc-files/subdir-used2/testfile.txt"
};
private static final String[] FILE_NEGATED_TEST2 = {
- BUG_ID + "-2/pkg/doc-files/subdir-excluded1" +
- "/testfile.txt",
- BUG_ID + "-2/pkg/doc-files/subdir-excluded2" +
- "/testfile.txt"
+ "pkg/doc-files/subdir-excluded1/testfile.txt",
+ "pkg/doc-files/subdir-excluded2/testfile.txt"
};
private static final String[][] TEST0 = {
@@ -67,15 +61,15 @@
//Output dir = Input Dir
private static final String[] ARGS1 =
new String[] {
- "-d", BUG_ID + "-1",
+ "-d", OUTPUT_DIR + "-1",
"-sourcepath",
- "blah" + File.pathSeparator + BUG_ID + "-1" +
+ "blah" + File.pathSeparator + OUTPUT_DIR + "-1" +
File.pathSeparator + "blah", "pkg"};
//Exercising -docfilessubdirs and -excludedocfilessubdir
private static final String[] ARGS2 =
new String[] {
- "-d", BUG_ID + "-2",
+ "-d", OUTPUT_DIR + "-2",
"-sourcepath", SRC_DIR,
"-docfilessubdirs",
"-excludedocfilessubdir", "subdir-excluded1:subdir-excluded2",
@@ -94,23 +88,9 @@
TestDocFileDir tester = new TestDocFileDir();
copyDir(SRC_DIR + "/pkg", ".");
tester.run(ARGS0, TEST0, NO_TEST);
- copyDir(SRC_DIR + "/pkg", BUG_ID + "-1");
+ copyDir(SRC_DIR + "/pkg", OUTPUT_DIR + "-1");
tester.run(ARGS1, TEST1, NO_TEST);
tester.run(ARGS2, NO_TEST, NO_TEST, FILE_TEST2, FILE_NEGATED_TEST2);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testDocFiles/TestDocFiles.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testDocFiles/TestDocFiles.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,9 +33,8 @@
public class TestDocFiles extends JavadocTester {
- private static final String BUG_ID = "8008949";
private static final String[][] TEST = {
- {"tmp/pkg/doc-files/test.txt", "test file"}};
+ { "pkg/doc-files/test.txt", "test file"}};
private static final String[] ARGS =
new String[] {
@@ -50,18 +49,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testDocRootInlineTag/TestDocRootInlineTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testDocRootInlineTag/TestDocRootInlineTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,24 +36,23 @@
public class TestDocRootInlineTag extends JavadocTester {
- private static final String BUG_ID = "4369014-4851991";
private static final String[][] TEST = {
- {BUG_ID + "/TestDocRootTag.html",
+ { "TestDocRootTag.html",
"<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " +
"title=\"class or interface in java.io\"><code>File</code></a>"},
- {BUG_ID + "/TestDocRootTag.html",
+ { "TestDocRootTag.html",
"<a href=\"./glossary.html\">glossary</a>"},
- {BUG_ID + "/TestDocRootTag.html",
+ { "TestDocRootTag.html",
"<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " +
"title=\"class or interface in java.io\"><code>Second File Link</code></a>"},
- {BUG_ID + "/TestDocRootTag.html", "The value of @docRoot is \"./\""},
- {BUG_ID + "/index-all.html", "My package page is " +
+ { "TestDocRootTag.html", "The value of @docRoot is \"./\""},
+ { "index-all.html", "My package page is " +
"<a href=\"./pkg/package-summary.html\">here</a>"}
};
private static final String[] ARGS =
new String[] {
"-bottom", "The value of @docRoot is \"{@docRoot}\"",
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-linkoffline", "http://www.java.sun.com/j2se/1.4/docs/api",
SRC_DIR, SRC_DIR + "/TestDocRootTag.java", "pkg"
};
@@ -67,18 +66,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java Tue Apr 22 17:57:40 2014 -0700
@@ -32,92 +32,91 @@
*/
public class TestDocRootLink extends JavadocTester {
- private static final String BUG_ID = "6553182";
private static final String[][] TEST1 = {
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"Refer <a href=\"../../technotes/guides/index.html\">Here</a>"
},
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"This <a href=\"../pkg2/C2.html\">Here</a> should not be replaced\n" +
" with an absolute link."
},
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"Testing <a href=\"../technotes/guides/index.html\">Link 1</a> and\n" +
" <a href=\"../pkg2/C2.html\">Link 2</a>."
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<a href=\"../../technotes/guides/index.html\">\n" +
" Test document 1</a>"
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<a href=\"../pkg2/C2.html\">\n" +
" Another Test document 1</a>"
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<a href=\"../technotes/guides/index.html\">\n" +
" Another Test document 2.</a>"
}
};
private static final String[][] NEGATED_TEST1 = {
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">"
},
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<a href=\"http://download.oracle.com/javase/7/docs/pkg2/C2.html\">"
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">"
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<a href=\"http://download.oracle.com/javase/7/docs/pkg2/C2.html\">"
}
};
private static final String[][] TEST2 = {
- {BUG_ID + "-1/pkg2/C2.html",
+ { "pkg2/C2.html",
"Refer <a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">Here</a>"
},
- {BUG_ID + "-1/pkg2/C2.html",
+ { "pkg2/C2.html",
"This <a href=\"../pkg1/C1.html\">Here</a> should not be replaced\n" +
" with an absolute link."
},
- {BUG_ID + "-1/pkg2/C2.html",
+ { "pkg2/C2.html",
"Testing <a href=\"../technotes/guides/index.html\">Link 1</a> and\n" +
" <a href=\"../pkg1/C1.html\">Link 2</a>."
},
- {BUG_ID + "-1/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">\n" +
" Test document 1</a>"
},
- {BUG_ID + "-1/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<a href=\"../pkg1/C1.html\">\n" +
" Another Test document 1</a>"
},
- {BUG_ID + "-1/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<a href=\"../technotes/guides/index.html\">\n" +
" Another Test document 2.</a>"
}
};
private static final String[][] NEGATED_TEST2 = {
- {BUG_ID + "-1/pkg2/C2.html",
+ { "pkg2/C2.html",
"<a href=\"../../technotes/guides/index.html\">"
},
- {BUG_ID + "-1/pkg2/C2.html",
+ { "pkg2/C2.html",
"<a href=\"http://download.oracle.com/javase/7/docs/pkg1/C1.html\">"
},
- {BUG_ID + "-1/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<a href=\"../../technotes/guides/index.html\">"
},
- {BUG_ID + "-1/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<a href=\"http://download.oracle.com/javase/7/docs/pkg1/C1.html\">"
}
};
private static final String[] ARGS1 =
new String[]{
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1", "pkg2"
};
private static final String[] ARGS2 =
new String[]{
- "-d", BUG_ID + "-1", "-Xdocrootparent",
+ "-d", OUTPUT_DIR + "-1", "-Xdocrootparent",
"http://download.oracle.com/javase/7/docs", "-sourcepath",
SRC_DIR, "pkg1", "pkg2"
};
@@ -132,18 +131,4 @@
tester.run(ARGS2, TEST2, NEGATED_TEST2);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testDupParamWarn/TestDupParamWarn.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testDupParamWarn/TestDupParamWarn.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,9 +35,8 @@
public class TestDupParamWarn extends JavadocTester {
- private static final String BUG_ID = "4745855";
private static final String[] ARGS =
- new String[] {"-d", BUG_ID, "-sourcepath",
+ new String[] {"-d", OUTPUT_DIR, "-sourcepath",
SRC_DIR + "/", "pkg"};
private static final String[][] NEGATED_TEST =
new String[][] {{WARNING_OUTPUT,
@@ -52,18 +51,4 @@
tester.run(ARGS, NO_TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testEmptyClass/TestEmptyClass.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testEmptyClass/TestEmptyClass.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,14 +35,13 @@
public class TestEmptyClass extends JavadocTester {
- private static final String OUTPUT_DIR = "tmp";
private static final String[][] NEGATED_TEST = {
//The overview tree should not link to classes that were not documented
- {OUTPUT_DIR + "/overview-tree.html", "<A HREF=\"TestEmptyClass.html\">"},
+ { "overview-tree.html", "<A HREF=\"TestEmptyClass.html\">"},
//The index page should not link to classes that were not documented
- {OUTPUT_DIR + "/index-all.html", "<A HREF=\"TestEmptyClass.html\">"},
+ { "index-all.html", "<A HREF=\"TestEmptyClass.html\">"},
};
private static final String[] ARGS =
new String[] {
@@ -50,8 +49,6 @@
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR + "/src",
SRC_DIR + "/src/Empty.java"
};
- private static final String BUG_ID =
- "4483401 4483407 4483409 4483413 4494343";
/**
* The entry point of the test.
@@ -65,18 +62,4 @@
throw new Error("Error found while executing Javadoc");
}
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testEnclosingClass/TestEnclosingClass.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testEnclosingClass/TestEnclosingClass.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,17 +34,14 @@
public class TestEnclosingClass extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "5008230";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/MyClass.MyInterface.html", "Enclosing class:"}
+ { "pkg/MyClass.MyInterface.html", "Enclosing class:"}
};
/**
@@ -56,18 +53,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testEncoding/TestEncoding.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testEncoding/TestEncoding.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,15 +35,14 @@
public class TestEncoding extends JavadocTester {
- private static final String BUG_ID = "4661481";
//If ??? is found in the output, the source file was not read with the correct encoding setting.
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/EncodeTest.html", "??"}
+ { "EncodeTest.html", "??"}
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-encoding", "iso-8859-1", SRC_DIR + "/EncodeTest.java"
};
@@ -56,18 +55,4 @@
tester.run(ARGS, NO_TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testExternalOverridenMethod/TestExternalOverridenMethod.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testExternalOverridenMethod/TestExternalOverridenMethod.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,15 +35,14 @@
public class TestExternalOverridenMethod extends JavadocTester {
- private static final String BUG_ID = "4857717";
private static final String[][] TEST = {
- {BUG_ID + "/pkg/XReader.html",
+ { "pkg/XReader.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"http://java.sun.com/j2se/1.4.1/docs/api/java/io/FilterReader.html?is-external=true#read--\" " +
"title=\"class or interface in java.io\">read</a></code> in class <code>" +
"<a href=\"http://java.sun.com/j2se/1.4.1/docs/api/java/io/FilterReader.html?is-external=true\" " +
"title=\"class or interface in java.io\">FilterReader</a></code></dd>"},
- {BUG_ID + "/pkg/XReader.html",
+ { "pkg/XReader.html",
"<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n" +
"<dd><code><a href=\"http://java.sun.com/j2se/1.4.1/docs/api/java/io/DataInput.html?is-external=true#readInt--\" " +
"title=\"class or interface in java.io\">readInt</a></code> in interface <code>" +
@@ -52,7 +51,7 @@
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-linkoffline", "http://java.sun.com/j2se/1.4.1/docs/api", SRC_DIR,
"pkg"
};
@@ -66,18 +65,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testGeneratedBy/TestGeneratedBy.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testGeneratedBy/TestGeneratedBy.java Tue Apr 22 17:57:40 2014 -0700
@@ -32,8 +32,6 @@
public class TestGeneratedBy extends JavadocTester {
- private static final String OUTPUT_DIR = "tmp";
-
private static final String[] FILES = {
"pkg/MyClass.html",
"pkg/package-summary.html",
@@ -65,7 +63,6 @@
"pkg"
};
- private static final String BUG_ID = "8000418-8024288";
private static String[][] getTests(boolean timestamp) {
String version = System.getProperty("java.version");
@@ -74,7 +71,7 @@
String genBy = "Generated by javadoc";
if (timestamp) genBy += " (" + version + ") on ";
tests[i] = new String[] {
- OUTPUT_DIR + "/" + FILES[i], genBy
+ FILES[i], genBy
};
}
return tests;
@@ -84,7 +81,7 @@
String[][] tests = new String[FILES.length][];
for (int i = 0; i < FILES.length; i++) {
tests[i] = new String[] {
- OUTPUT_DIR + "/" + FILES[i],
+ FILES[i],
(timestamp
? "Generated by javadoc (version"
: "Generated by javadoc ("),
@@ -107,19 +104,5 @@
throw new Error("Error found while executing Javadoc");
}
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testGroupOption/TestGroupOption.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testGroupOption/TestGroupOption.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,12 +35,9 @@
public class TestGroupOption extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4924383";
-
//Javadoc arguments.
private static final String[] ARGS1 = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-group", "Package One", "pkg1",
"-group", "Package Two", "pkg2",
"-group", "Package Three", "pkg3",
@@ -48,7 +45,7 @@
};
private static final String[] ARGS2 = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-group", "Package One", "pkg1",
"-group", "Package One", "pkg2",
"-group", "Package One", "pkg3",
@@ -75,18 +72,4 @@
tester.run(ARGS2, TEST2, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHeadings/TestHeadings.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHeadings/TestHeadings.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,19 +34,16 @@
public class TestHeadings extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4905786-6259611";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "-header", "Test Files",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-use", "-header", "Test Files",
"pkg1", "pkg2"
};
//Input for string search tests.
private static final String[][] TEST = {
//Package summary
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<th class=\"colFirst\" scope=\"col\">" +
"Class</th>\n" +
"<th class=\"colLast\" scope=\"col\"" +
@@ -54,31 +51,31 @@
},
// Class documentation
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Field and Description</th>"
},
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<h3>Methods inherited from class java.lang.Object</h3>"
},
// Class use documentation
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<th class=\"colFirst\" scope=\"col\">Package</th>\n" +
"<th class=\"colLast\" scope=\"col\">Description</th>"
},
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Field and Description</th>"
},
// Deprecated
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<th class=\"colOne\" scope=\"col\">Method and Description</th>"
},
// Constant values
- {BUG_ID + "/constant-values.html",
+ { "constant-values.html",
"<th class=\"colFirst\" scope=\"col\">" +
"Modifier and Type</th>\n" +
"<th scope=\"col\">Constant Field</th>\n" +
@@ -86,27 +83,27 @@
},
// Serialized Form
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h2 title=\"Package\">Package pkg1</h2>"
},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class <a href=\"pkg1/C1.html\" title=\"class in pkg1\">" +
"pkg1.C1</a> extends java.lang.Object implements Serializable</h3>"
},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Serialized Fields</h3>"
},
// Overview Frame
- {BUG_ID + "/overview-frame.html",
+ { "overview-frame.html",
"<h1 title=\"Test Files\" class=\"bar\">Test Files</h1>"
},
- {BUG_ID + "/overview-frame.html",
+ { "overview-frame.html",
"<title>Overview List</title>"
},
// Overview Summary
- {BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<title>Overview</title>"
}
};
@@ -120,18 +117,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHelpFile/TestHelpFile.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHelpFile/TestHelpFile.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,17 +33,14 @@
public class TestHelpFile extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "7132631";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
SRC_DIR + "/TestHelpFile.java"
};
private static final String[][] TEST = {
- {BUG_ID + "/help-doc.html",
+ { "help-doc.html",
"<a href=\"constant-values.html\">Constant Field Values</a>"
},
};
@@ -57,18 +54,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHelpOption/TestHelpOption.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHelpOption/TestHelpOption.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,17 +34,14 @@
public class TestHelpOption extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4934778-4777599-6553182";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-help",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-help",
SRC_DIR + "/TestHelpOption.java"
};
private static final String[] ARGS2 = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
SRC_DIR + "/TestHelpOption.java"
};
@@ -88,7 +85,7 @@
};
private static final String[][] TEST2 = {
- {BUG_ID + "/TestHelpOption.html",
+ { "TestHelpOption.html",
"<li><a href=\"help-doc.html\">Help</a></li>"
},
};
@@ -107,18 +104,4 @@
tester.run(ARGS2, TEST2, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHiddenMembers/TestHiddenMembers.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHiddenMembers/TestHiddenMembers.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,17 +35,16 @@
public class TestHiddenMembers extends JavadocTester {
- private static final String BUG_ID = "4492178";
//We should not inherit any members from BaseClass because they are all overriden and hidden
//(declared as private).
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"inherited from class pkg.<A HREF=\"../pkg/BaseClass.html\">BaseClass</A>"}
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"pkg"
};
@@ -58,18 +57,4 @@
tester.run(ARGS, NO_TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHref/TestHref.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHref/TestHref.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,54 +33,51 @@
public class TestHref extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4663254";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-linkoffline",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-linkoffline",
"http://java.sun.com/j2se/1.4/docs/api/", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
//External link.
- {BUG_ID + "/pkg/C1.html",
+ { "pkg/C1.html",
"href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait-long-int-\""
},
//Member summary table link.
- {BUG_ID + "/pkg/C1.html",
+ { "pkg/C1.html",
"href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\""
},
//Anchor test.
- {BUG_ID + "/pkg/C1.html",
+ { "pkg/C1.html",
"<a name=\"method-int-int-java.util.ArrayList-\">\n" +
"<!-- -->\n" +
"</a>"
},
//Backward compatibility anchor test.
- {BUG_ID + "/pkg/C1.html",
+ { "pkg/C1.html",
"<a name=\"method-int-int-java.util.ArrayList-\">\n" +
"<!-- -->\n" +
"</a>"
},
//{@link} test.
- {BUG_ID + "/pkg/C2.html",
+ { "pkg/C2.html",
"Link: <a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">"
},
//@see test.
- {BUG_ID + "/pkg/C2.html",
+ { "pkg/C2.html",
"See Also:</span></dt>\n" +
"<dd><a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">"
},
//Header does not link to the page itself.
- {BUG_ID + "/pkg/C4.html",
+ { "pkg/C4.html",
"Class C4<E extends C4<E>></h2>"
},
//Signature does not link to the page itself.
- {BUG_ID + "/pkg/C4.html",
+ { "pkg/C4.html",
"public abstract class <span class=\"typeNameLabel\">C4<E extends C4<E>></span>"
},
};
@@ -98,18 +95,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHrefInDocComment/TestHrefInDocComment.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHrefInDocComment/TestHrefInDocComment.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,10 +35,9 @@
public class TestHrefInDocComment extends JavadocTester {
- private static final String BUG_ID = "4638015";
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"};
/**
* The entry point of the test.
@@ -49,20 +48,5 @@
if (tester.run(ARGS, NO_TEST, NO_TEST) != 0) {
throw new Error("Javadoc failed to execute properly with given source.");
}
-
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
}
}
--- a/langtools/test/com/sun/javadoc/testHtmlComments/TestHtmlComments.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHtmlComments/TestHtmlComments.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,17 +35,14 @@
public class TestHtmlComments extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4904038";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
};
//Input for string search tests.
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/C.html",
+ { "C.html",
"<!-- ============ FIELD DETAIL =========== -->"}
};
@@ -58,18 +55,4 @@
tester.run(ARGS, NO_TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,18 +35,16 @@
public class TestHtmlDefinitionListTag extends JavadocTester {
- private static final String BUG_ID = "6786690-6820360";
-
// Test common to all runs of javadoc. The class signature should print
// properly enclosed definition list tags and the Annotation Type
// Optional Element should print properly nested definition list tags
// for default value.
private static final String[][] TEST_ALL = {
- {BUG_ID + "/pkg1/C1.html", "<pre>public class " +
+ { "pkg1/C1.html", "<pre>public class " +
"<span class=\"typeNameLabel\">C1</span>\n" +
"extends java.lang.Object\n" +
"implements java.io.Serializable</pre>"},
- {BUG_ID + "/pkg1/C4.html", "<dl>\n" +
+ { "pkg1/C4.html", "<dl>\n" +
"<dt>Default:</dt>\n" +
"<dd>true</dd>\n" +
"</dl>"}};
@@ -55,11 +53,11 @@
// serialized form should have properly nested definition list tags
// enclosing comments, tags and deprecated information.
private static final String[][] TEST_CMNT_DEPR = {
- {BUG_ID + "/pkg1/package-summary.html", "<dl>\n" +
+ { "pkg1/package-summary.html", "<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n" +
"<dd>JDK1.0</dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n" +
"<dd>JDK1.0</dd>\n" +
"<dt><span class=\"seeLabel\">See Also:</span></dt>\n" +
@@ -68,7 +66,7 @@
"<a href=\"../serialized-form.html#pkg1.C1\">" +
"Serialized Form</a></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n" +
"<dd>1.4</dd>\n" +
"<dt><span class=\"seeLabel\">See Also:</span></dt>\n" +
@@ -76,7 +74,7 @@
"<a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"paramLabel\">Parameters:</span></dt>\n" +
"<dd><code>title" +
"</code> - the title</dd>\n" +
@@ -89,7 +87,7 @@
"device</dd>\n" +
"<dd><code>HeadlessException</code></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"paramLabel\">Parameters:</span></dt>\n" +
"<dd><code>undecorated" +
"</code> - <code>true</code> if no decorations are\n" +
@@ -104,7 +102,7 @@
"<a href=\"../pkg1/C1.html#readObject--\"><code>readObject()" +
"</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"throwsLabel\">Throws:</span></dt>\n" +
"<dd><code>java.io.IOException</code></dd>\n" +
"<dt><span class=\"seeLabel\">See Also:" +
@@ -112,7 +110,7 @@
"<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C2.html", "<dl>\n" +
+ { "pkg1/C2.html", "<dl>\n" +
"<dt><span class=\"paramLabel\">Parameters:" +
"</span></dt>\n" +
"<dd><code>set</code> - boolean</dd>\n" +
@@ -120,7 +118,7 @@
"Since:</span></dt>\n" +
"<dd>1.4</dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html", "<dl>\n" +
+ { "serialized-form.html", "<dl>\n" +
"<dt><span class=\"throwsLabel\">Throws:</span>" +
"</dt>\n" +
"<dd><code>" +
@@ -130,7 +128,7 @@
"<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>C1.setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" <span class=\"deprecationComment\">As of JDK version 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
@@ -146,7 +144,7 @@
"<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>C1.setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" <span class=\"deprecationComment\">As of JDK version 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
@@ -159,7 +157,7 @@
"IOException</code></code></dd>\n" +
"<dd><code>java.io.IOException</code></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" </div>\n" +
"<div class=\"block\">The name for this class.</div>"}};
@@ -170,11 +168,11 @@
// should display properly nested definition list tags for comments, tags
// and deprecated information.
private static final String[][] TEST_NODEPR = {
- {BUG_ID + "/pkg1/package-summary.html", "<dl>\n" +
+ { "pkg1/package-summary.html", "<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n" +
"<dd>JDK1.0</dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Since:</span>" +
"</dt>\n" +
"<dd>JDK1.0</dd>\n" +
@@ -185,7 +183,7 @@
"<a href=\"../serialized-form.html#pkg1.C1\">" +
"Serialized Form</a></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"paramLabel\">Parameters:" +
"</span></dt>\n" +
"<dd><code>title</code> - the title</dd>\n" +
@@ -200,7 +198,7 @@
"<dd><code>" +
"HeadlessException</code></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"paramLabel\">Parameters:" +
"</span></dt>\n" +
"<dd><code>undecorated</code> - <code>true</code>" +
@@ -214,7 +212,7 @@
"<dd><a href=\"../pkg1/C1.html#readObject--\">" +
"<code>readObject()</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl>\n" +
"<dt><span class=\"throwsLabel\">Throws:</span>" +
"</dt>\n" +
"<dd><code>java.io.IOException</code></dd>\n" +
@@ -223,7 +221,7 @@
"<dd><a href=\"../pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html", "<dl>\n" +
+ { "serialized-form.html", "<dl>\n" +
"<dt><span class=\"throwsLabel\">Throws:</span>" +
"</dt>\n" +
"<dd><code>" +
@@ -233,7 +231,7 @@
"<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>C1.setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" <span class=\"deprecationComment\">As of JDK version 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
@@ -249,7 +247,7 @@
"<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>C1.setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" <span class=\"deprecationComment\">As of JDK version 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
@@ -262,7 +260,7 @@
"IOException</code></code></dd>\n" +
"<dd><code>java.io.IOException</code></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" </div>\n" +
"<div class=\"block\">" +
@@ -271,25 +269,25 @@
// Test with -nocomment and -nodeprecated options. The ClassDocs whould
// not display definition lists for any member details.
private static final String[][] TEST_NOCMNT_NODEPR = {
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<pre>public void readObject()\n" +
" throws java.io.IOException</pre>\n" +
"</li>"},
- {BUG_ID + "/pkg1/C2.html", "<pre>public C2()</pre>\n" +
+ { "pkg1/C2.html", "<pre>public C2()</pre>\n" +
"</li>"},
- {BUG_ID + "/pkg1/C1.ModalExclusionType.html", "<pre>public " +
+ { "pkg1/C1.ModalExclusionType.html", "<pre>public " +
"static final <a href=\"../pkg1/C1.ModalExclusionType.html\" " +
"title=\"enum in pkg1\">C1.ModalExclusionType</a> " +
"APPLICATION_EXCLUDE</pre>\n" +
"</li>"},
- {BUG_ID + "/serialized-form.html", "<pre>boolean " +
+ { "serialized-form.html", "<pre>boolean " +
"undecorated</pre>\n" +
"<div class=\"block\"><span class=\"deprecatedLabel\">" +
"Deprecated.</span> <span class=\"deprecationComment\">As of JDK version 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\"><code>" +
"setUndecorated(boolean)</code></a>.</span></div>\n" +
"</li>"},
- {BUG_ID + "/serialized-form.html", "<span class=\"deprecatedLabel\">" +
+ { "serialized-form.html", "<span class=\"deprecatedLabel\">" +
"Deprecated.</span> <span class=\"deprecationComment\">As of JDK version" +
" 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
@@ -299,54 +297,54 @@
// Test for valid HTML generation which should not comprise of empty
// definition list tags.
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg1/package-summary.html", "<dl></dl>"},
- {BUG_ID + "/pkg1/package-summary.html", "<dl>\n" +
+ { "pkg1/package-summary.html", "<dl></dl>"},
+ { "pkg1/package-summary.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl></dl>"},
- {BUG_ID + "/pkg1/C1.html", "<dl>\n" +
+ { "pkg1/C1.html", "<dl></dl>"},
+ { "pkg1/C1.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C1.ModalExclusionType.html", "<dl></dl>"},
- {BUG_ID + "/pkg1/C1.ModalExclusionType.html", "<dl>\n" +
+ { "pkg1/C1.ModalExclusionType.html", "<dl></dl>"},
+ { "pkg1/C1.ModalExclusionType.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C2.html", "<dl></dl>"},
- {BUG_ID + "/pkg1/C2.html", "<dl>\n" +
+ { "pkg1/C2.html", "<dl></dl>"},
+ { "pkg1/C2.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C2.ModalType.html", "<dl></dl>"},
- {BUG_ID + "/pkg1/C2.ModalType.html", "<dl>\n" +
+ { "pkg1/C2.ModalType.html", "<dl></dl>"},
+ { "pkg1/C2.ModalType.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C3.html", "<dl></dl>"},
- {BUG_ID + "/pkg1/C3.html", "<dl>\n" +
+ { "pkg1/C3.html", "<dl></dl>"},
+ { "pkg1/C3.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C4.html", "<dl></dl>"},
- {BUG_ID + "/pkg1/C4.html", "<dl>\n" +
+ { "pkg1/C4.html", "<dl></dl>"},
+ { "pkg1/C4.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/C5.html", "<dl></dl>"},
- {BUG_ID + "/pkg1/C5.html", "<dl>\n" +
+ { "pkg1/C5.html", "<dl></dl>"},
+ { "pkg1/C5.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/overview-tree.html", "<dl></dl>"},
- {BUG_ID + "/overview-tree.html", "<dl>\n" +
+ { "overview-tree.html", "<dl></dl>"},
+ { "overview-tree.html", "<dl>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html", "<dl></dl>"},
- {BUG_ID + "/serialized-form.html", "<dl>\n" +
+ { "serialized-form.html", "<dl></dl>"},
+ { "serialized-form.html", "<dl>\n" +
"</dl>"}};
private static final String[] ARGS1 =
new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"};
private static final String[] ARGS2 =
new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-nocomment", "-sourcepath",
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-nocomment", "-sourcepath",
SRC_DIR, "pkg1"};
private static final String[] ARGS3 =
new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-nodeprecated", "-sourcepath",
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-nodeprecated", "-sourcepath",
SRC_DIR, "pkg1"};
private static final String[] ARGS4 =
new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-nocomment", "-nodeprecated",
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-nocomment", "-nodeprecated",
"-sourcepath", SRC_DIR, "pkg1"};
/**
@@ -365,18 +363,4 @@
tester.run(ARGS4, TEST_NOCMNT_NODEPR, TEST_CMNT_DEPR);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,28 +36,27 @@
public class TestHtmlStrongTag extends JavadocTester {
- private static final String BUG_ID = "6786028";
private static final String[][] TEST1 = {
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<span class=\"seeLabel\">See Also:</span>"}};
private static final String[][] NEGATED_TEST1 = {
- {BUG_ID + "/pkg1/C1.html", "<STRONG>Method Summary</STRONG>"},
- {BUG_ID + "/pkg1/C1.html", "<B>"},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/C1.html", "<STRONG>Method Summary</STRONG>"},
+ { "pkg1/C1.html", "<B>"},
+ { "pkg1/package-summary.html",
"<STRONG>Class Summary</STRONG>"}};
private static final String[][] TEST2 = {
- {BUG_ID + "/pkg2/C2.html", "<B>Comments:</B>"}};
+ { "pkg2/C2.html", "<B>Comments:</B>"}};
private static final String[][] NEGATED_TEST2 = {
- {BUG_ID + "/pkg2/C2.html", "<STRONG>Method Summary</STRONG>"},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg2/C2.html", "<STRONG>Method Summary</STRONG>"},
+ { "pkg1/package-summary.html",
"<STRONG>Class Summary</STRONG>"}};
private static final String[] ARGS1 =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"};
private static final String[] ARGS2 =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg2"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg2"};
/**
* The entry point of the test.
@@ -69,18 +68,4 @@
tester.run(ARGS2, TEST2, NEGATED_TEST2);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,47 +33,45 @@
public class TestHtmlTableStyles extends JavadocTester {
- private static final String BUG_ID = "8008164";
-
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg1/TestTable.html",
+ { "pkg1/TestTable.html",
"<table border cellpadding=3 cellspacing=1>"
},
- {BUG_ID + "/pkg1/TestTable.html",
+ { "pkg1/TestTable.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Field Summary table, listing fields, " +
"and an explanation\">"
},
- {BUG_ID + "/pkg1/TestTable.html",
+ { "pkg1/TestTable.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Constructor Summary table, listing " +
"constructors, and an explanation\">"
},
- {BUG_ID + "/pkg1/TestTable.html",
+ { "pkg1/TestTable.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Method Summary table, listing methods, " +
"and an explanation\">"
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Class Summary table, listing classes, " +
"and an explanation\">"
},
- {BUG_ID + "/pkg1/class-use/TestTable.html",
+ { "pkg1/class-use/TestTable.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Use table, listing fields, and an explanation\">"
},
- {BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Packages table, listing packages, and an explanation\">"
},
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<table class=\"deprecatedSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Deprecated Methods table, listing " +
"deprecated methods, and an explanation\">"
},
- {BUG_ID + "/constant-values.html",
+ { "constant-values.html",
"<table class=\"constantsSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Constant Field Values table, listing " +
"constant fields, and values\">"
@@ -81,7 +79,7 @@
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
};
/**
@@ -93,18 +91,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHtmlTableTags/TestHtmlTableTags.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHtmlTableTags/TestHtmlTableTags.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,12 +34,9 @@
public class TestHtmlTableTags extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "6786688";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
};
//Input for string tests for HTML table tags.
@@ -49,127 +46,127 @@
*/
//Package summary
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\"" +
" cellspacing=\"0\" summary=\"Class Summary table, " +
"listing classes, and an explanation\">"
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\"" +
" cellspacing=\"0\" summary=\"Interface Summary table, " +
"listing interfaces, and an explanation\">"
},
- {BUG_ID + "/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\"" +
" cellspacing=\"0\" summary=\"Enum Summary table, " +
"listing enums, and an explanation\">"
},
- {BUG_ID + "/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\"" +
" cellspacing=\"0\" summary=\"Annotation Types Summary table, " +
"listing annotation types, and an explanation\">"
},
// Class documentation
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Field Summary table, listing fields, " +
"and an explanation\">"
},
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Method Summary table, listing methods, " +
"and an explanation\">"
},
- {BUG_ID + "/pkg2/C2.html",
+ { "pkg2/C2.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Nested Class Summary table, listing " +
"nested classes, and an explanation\">"
},
- {BUG_ID + "/pkg2/C2.html",
+ { "pkg2/C2.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Constructor Summary table, listing " +
"constructors, and an explanation\">"
},
- {BUG_ID + "/pkg2/C2.ModalExclusionType.html",
+ { "pkg2/C2.ModalExclusionType.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Enum Constant Summary table, listing " +
"enum constants, and an explanation\">"
},
- {BUG_ID + "/pkg2/C3.html",
+ { "pkg2/C3.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Required Element Summary table, " +
"listing required elements, and an explanation\">"
},
- {BUG_ID + "/pkg2/C4.html",
+ { "pkg2/C4.html",
"<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Optional Element Summary table, " +
"listing optional elements, and an explanation\">"
},
// Class use documentation
- {BUG_ID + "/pkg1/class-use/I1.html",
+ { "pkg1/class-use/I1.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing packages, and an explanation\">"
},
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing fields, and an explanation\">"
},
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing methods, and an explanation\">"
},
- {BUG_ID + "/pkg2/class-use/C2.html",
+ { "pkg2/class-use/C2.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing fields, and an explanation\">"
},
- {BUG_ID + "/pkg2/class-use/C2.html",
+ { "pkg2/class-use/C2.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing methods, and an explanation\">"
},
- {BUG_ID + "/pkg2/class-use/C2.ModalExclusionType.html",
+ { "pkg2/class-use/C2.ModalExclusionType.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing packages, and an explanation\">"
},
- {BUG_ID + "/pkg2/class-use/C2.ModalExclusionType.html",
+ { "pkg2/class-use/C2.ModalExclusionType.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing methods, and an explanation\">"
},
// Package use documentation
- {BUG_ID + "/pkg1/package-use.html",
+ { "pkg1/package-use.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing packages, and an explanation\">"
},
- {BUG_ID + "/pkg1/package-use.html",
+ { "pkg1/package-use.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing classes, and an explanation\">"
},
- {BUG_ID + "/pkg2/package-use.html",
+ { "pkg2/package-use.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing packages, and an explanation\">"
},
- {BUG_ID + "/pkg2/package-use.html",
+ { "pkg2/package-use.html",
"<table class=\"useSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
"table, listing classes, and an explanation\">"
},
// Deprecated
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<table class=\"deprecatedSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " +
"summary=\"Deprecated Fields table, listing deprecated fields, " +
"and an explanation\">"
},
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<table class=\"deprecatedSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " +
"summary=\"Deprecated Methods table, listing deprecated methods, " +
"and an explanation\">"
},
// Constant values
- {BUG_ID + "/constant-values.html",
+ { "constant-values.html",
"<table class=\"constantsSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " +
"summary=\"Constant Field Values table, listing " +
"constant fields, and values\">"
},
// Overview Summary
- {BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
"cellspacing=\"0\" summary=\"Packages table, " +
"listing packages, and an explanation\">"
@@ -180,27 +177,27 @@
*/
//Package summary
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<caption><span>Class Summary</span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<caption><span>Interface Summary</span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<caption><span>Enum Summary</span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<caption><span>Annotation Types Summary</span><span class=\"tabEnd\">" +
" </span></caption>"
},
// Class documentation
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<caption><span>Fields</span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<caption><span id=\"t0\" class=\"activeTableTab\"><span>All " +
"Methods</span><span class=\"tabEnd\"> </span></span>" +
"<span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">" +
@@ -211,94 +208,94 @@
"Deprecated Methods</a></span><span class=\"tabEnd\"> </span></span>" +
"</caption>"
},
- {BUG_ID + "/pkg2/C2.html",
+ { "pkg2/C2.html",
"<caption><span>Nested Classes</span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/C2.html",
+ { "pkg2/C2.html",
"<caption><span>Constructors</span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/C2.ModalExclusionType.html",
+ { "pkg2/C2.ModalExclusionType.html",
"<caption><span>Enum Constants</span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/C3.html",
+ { "pkg2/C3.html",
"<caption><span>Required Elements</span><span class=\"tabEnd\"> " +
"</span></caption>"
},
- {BUG_ID + "/pkg2/C4.html",
+ { "pkg2/C4.html",
"<caption><span>Optional Elements</span><span class=\"tabEnd\"> " +
"</span></caption>"
},
// Class use documentation
- {BUG_ID + "/pkg1/class-use/I1.html",
+ { "pkg1/class-use/I1.html",
"<caption><span>Packages that use <a href=\"../../pkg1/I1.html\" " +
"title=\"interface in pkg1\">I1</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<caption><span>Fields in <a href=\"../../pkg2/package-summary.html\">" +
"pkg2</a> declared as <a href=\"../../pkg1/C1.html\" " +
"title=\"class in pkg1\">C1</a></span><span class=\"tabEnd\"> " +
"</span></caption>"
},
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<caption><span>Methods in <a href=\"../../pkg2/package-summary.html\">" +
"pkg2</a> that return <a href=\"../../pkg1/C1.html\" " +
"title=\"class in pkg1\">C1</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/C2.html",
+ { "pkg2/class-use/C2.html",
"<caption><span>Fields in <a href=\"../../pkg1/package-summary.html\">" +
"pkg1</a> declared as <a href=\"../../pkg2/C2.html\" " +
"title=\"class in pkg2\">C2</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/C2.html",
+ { "pkg2/class-use/C2.html",
"<caption><span>Methods in <a href=\"../../pkg1/package-summary.html\">" +
"pkg1</a> that return <a href=\"../../pkg2/C2.html\" " +
"title=\"class in pkg2\">C2</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/C2.ModalExclusionType.html",
+ { "pkg2/class-use/C2.ModalExclusionType.html",
"<caption><span>Methods in <a href=\"../../pkg2/package-summary.html\">" +
"pkg2</a> that return <a href=\"../../pkg2/C2.ModalExclusionType.html\" " +
"title=\"enum in pkg2\">C2.ModalExclusionType</a></span>" +
"<span class=\"tabEnd\"> </span></caption>"
},
// Package use documentation
- {BUG_ID + "/pkg1/package-use.html",
+ { "pkg1/package-use.html",
"<caption><span>Packages that use <a href=\"../pkg1/package-summary.html\">" +
"pkg1</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg1/package-use.html",
+ { "pkg1/package-use.html",
"<caption><span>Classes in <a href=\"../pkg1/package-summary.html\">" +
"pkg1</a> used by <a href=\"../pkg1/package-summary.html\">pkg1</a>" +
"</span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/package-use.html",
+ { "pkg2/package-use.html",
"<caption><span>Packages that use <a href=\"../pkg2/package-summary.html\">" +
"pkg2</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/package-use.html",
+ { "pkg2/package-use.html",
"<caption><span>Classes in <a href=\"../pkg2/package-summary.html\">" +
"pkg2</a> used by <a href=\"../pkg1/package-summary.html\">pkg1</a>" +
"</span><span class=\"tabEnd\"> </span></caption>"
},
// Deprecated
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<caption><span>Deprecated Fields</span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<caption><span>Deprecated Methods</span><span class=\"tabEnd\">" +
" </span></caption>"
},
// Constant values
- {BUG_ID + "/constant-values.html",
+ { "constant-values.html",
"<caption><span>pkg1.<a href=\"pkg1/C1.html\" title=\"class in pkg1\">" +
"C1</a></span><span class=\"tabEnd\"> </span></caption>"
},
// Overview Summary
- {BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<caption><span>Packages</span><span class=\"tabEnd\"> </span></caption>"
},
@@ -307,110 +304,110 @@
*/
//Package summary
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<th class=\"colFirst\" scope=\"col\">" +
"Class</th>\n" +
"<th class=\"colLast\" scope=\"col\"" +
">Description</th>"
},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<th class=\"colFirst\" scope=\"col\">" +
"Interface</th>\n" +
"<th class=\"colLast\" scope=\"col\"" +
">Description</th>"
},
- {BUG_ID + "/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<th class=\"colFirst\" scope=\"col\">" +
"Enum</th>\n" +
"<th class=\"colLast\" scope=\"col\"" +
">Description</th>"
},
- {BUG_ID + "/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"<th class=\"colFirst\" scope=\"col\">" +
"Annotation Type</th>\n" +
"<th class=\"colLast\"" +
" scope=\"col\">Description</th>"
},
// Class documentation
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Field and Description</th>"
},
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Method and Description</th>"
},
- {BUG_ID + "/pkg2/C2.html",
+ { "pkg2/C2.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Class and Description</th>"
},
- {BUG_ID + "/pkg2/C2.html",
+ { "pkg2/C2.html",
"<th class=\"colOne\" scope=\"col\">Constructor and Description</th>"
},
- {BUG_ID + "/pkg2/C2.ModalExclusionType.html",
+ { "pkg2/C2.ModalExclusionType.html",
"<th class=\"colOne\" scope=\"col\">Enum Constant and Description</th>"
},
- {BUG_ID + "/pkg2/C3.html",
+ { "pkg2/C3.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Required Element and Description</th>"
},
- {BUG_ID + "/pkg2/C4.html",
+ { "pkg2/C4.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Optional Element and Description</th>"
},
// Class use documentation
- {BUG_ID + "/pkg1/class-use/I1.html",
+ { "pkg1/class-use/I1.html",
"<th class=\"colFirst\" scope=\"col\">Package</th>\n" +
"<th class=\"colLast\" scope=\"col\">Description</th>"
},
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Field and Description</th>"
},
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Method and Description</th>"
},
- {BUG_ID + "/pkg2/class-use/C2.html",
+ { "pkg2/class-use/C2.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Field and Description</th>"
},
- {BUG_ID + "/pkg2/class-use/C2.html",
+ { "pkg2/class-use/C2.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Method and Description</th>"
},
- {BUG_ID + "/pkg2/class-use/C2.ModalExclusionType.html",
+ { "pkg2/class-use/C2.ModalExclusionType.html",
"<th class=\"colFirst\" scope=\"col\">Package</th>\n" +
"<th class=\"colLast\" scope=\"col\">Description</th>"
},
- {BUG_ID + "/pkg2/class-use/C2.ModalExclusionType.html",
+ { "pkg2/class-use/C2.ModalExclusionType.html",
"<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
"<th class=\"colLast\" scope=\"col\">Method and Description</th>"
},
// Package use documentation
- {BUG_ID + "/pkg1/package-use.html",
+ { "pkg1/package-use.html",
"<th class=\"colFirst\" scope=\"col\">Package</th>\n" +
"<th class=\"colLast\" scope=\"col\">Description</th>"
},
- {BUG_ID + "/pkg1/package-use.html",
+ { "pkg1/package-use.html",
"<th class=\"colOne\" scope=\"col\">Class and Description</th>"
},
- {BUG_ID + "/pkg2/package-use.html",
+ { "pkg2/package-use.html",
"<th class=\"colFirst\" scope=\"col\">Package</th>\n" +
"<th class=\"colLast\" scope=\"col\">Description</th>"
},
- {BUG_ID + "/pkg2/package-use.html",
+ { "pkg2/package-use.html",
"<th class=\"colOne\" scope=\"col\">Class and Description</th>"
},
// Deprecated
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<th class=\"colOne\" scope=\"col\">Field and Description</th>"
},
- {BUG_ID + "/deprecated-list.html",
+ { "deprecated-list.html",
"<th class=\"colOne\" scope=\"col\">Method and Description</th>"
},
// Constant values
- {BUG_ID + "/constant-values.html",
+ { "constant-values.html",
"<th class=\"colFirst\" scope=\"col\">" +
"Modifier and Type</th>\n" +
"<th" +
@@ -418,7 +415,7 @@
"<th class=\"colLast\" scope=\"col\">Value</th>"
},
// Overview Summary
- {BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<th class=\"colFirst\" scope=\"col\">" +
"Package</th>\n" +
"<th class=\"colLast\" scope=\"col\"" +
@@ -435,18 +432,4 @@
tester.run(ARGS, TABLE_TAGS_TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testHtmlTag/TestHtmlTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHtmlTag/TestHtmlTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -38,34 +38,33 @@
public class TestHtmlTag extends JavadocTester {
- private static final String BUG_ID = "6786682";
private static final String[][] TEST1 = {
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<html lang=\"" + Locale.getDefault().getLanguage() + "\">"},
- {BUG_ID + "/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<html lang=\"" + Locale.getDefault().getLanguage() + "\">"}};
private static final String[][] NEGATED_TEST1 = {
- {BUG_ID + "/pkg1/C1.html", "<html>"}};
+ { "pkg1/C1.html", "<html>"}};
private static final String[][] TEST2 = {
- {BUG_ID + "/pkg2/C2.html", "<html lang=\"ja\">"},
- {BUG_ID + "/pkg2/package-summary.html", "<html lang=\"ja\">"}};
+ { "pkg2/C2.html", "<html lang=\"ja\">"},
+ { "pkg2/package-summary.html", "<html lang=\"ja\">"}};
private static final String[][] NEGATED_TEST2 = {
- {BUG_ID + "/pkg2/C2.html", "<html>"}};
+ { "pkg2/C2.html", "<html>"}};
private static final String[][] TEST3 = {
- {BUG_ID + "/pkg1/C1.html", "<html lang=\"en\">"},
- {BUG_ID + "/pkg1/package-summary.html", "<html lang=\"en\">"}};
+ { "pkg1/C1.html", "<html lang=\"en\">"},
+ { "pkg1/package-summary.html", "<html lang=\"en\">"}};
private static final String[][] NEGATED_TEST3 = {
- {BUG_ID + "/pkg1/C1.html", "<html>"}};
+ { "pkg1/C1.html", "<html>"}};
private static final String[] ARGS1 =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"};
private static final String[] ARGS2 =
new String[] {
- "-locale", "ja", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg2"};
+ "-locale", "ja", "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg2"};
private static final String[] ARGS3 =
new String[] {
- "-locale", "en_US", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
+ "-locale", "en_US", "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"};
/**
* The entry point of the test.
@@ -78,18 +77,4 @@
tester.run(ARGS3, TEST3, NEGATED_TEST3);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testIndentation/TestIndentation.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testIndentation/TestIndentation.java Tue Apr 22 17:57:40 2014 -0700
@@ -32,22 +32,19 @@
public class TestIndentation extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8011288";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "p"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "p"
};
//Input for string search tests.
private static final String[][] TEST = {
- { BUG_ID + "/p/Indent.html",
+ { "p/Indent.html",
"<pre>public <T> void m(T t1," },
- { BUG_ID + "/p/Indent.html",
+ { "p/Indent.html",
"\n" +
" T t2)" },
- { BUG_ID + "/p/Indent.html",
+ { "p/Indent.html",
"\n" +
" throws java.lang.Exception" }
};
@@ -61,18 +58,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testIndex/TestIndex.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testIndex/TestIndex.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,40 +36,37 @@
public class TestIndex extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4852280-4517115-4973608-4994589";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", SRC_DIR + "/NoPackage.java"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg", SRC_DIR + "/NoPackage.java"
};
//Input for string search tests.
private static final String[][] TEST = {
//Make sure the horizontal scroll bar does not appear in class frame.
- {BUG_ID + "/index.html",
+ { "index.html",
"<frame src=\"overview-summary.html\" name=\"classFrame\" title=\"" +
"Package, class and interface descriptions\" scrolling=\"yes\">"},
//Test index-all.html
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"pkg/C.html\" title=\"class in pkg\"><span class=\"typeNameLink\">C</span></a>" +
" - Class in <a href=\"pkg/package-summary.html\">pkg</a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"pkg/Interface.html\" title=\"interface in pkg\">" +
"<span class=\"typeNameLink\">Interface</span></a> - Interface in " +
"<a href=\"pkg/package-summary.html\">pkg</a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"pkg/AnnotationType.html\" title=\"annotation in pkg\">" +
"<span class=\"typeNameLink\">AnnotationType</span></a> - Annotation Type in " +
"<a href=\"pkg/package-summary.html\">pkg</a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"pkg/Coin.html\" title=\"enum in pkg\">" +
"<span class=\"typeNameLink\">Coin</span></a> - Enum in " +
"<a href=\"pkg/package-summary.html\">pkg</a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"Class in <a href=\"package-summary.html\"><Unnamed></a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<dl>\n" +
"<dt><span class=\"memberNameLink\"><a href=\"pkg/C.html#Java\">" +
"Java</a></span> - Static variable in class pkg.<a href=\"pkg/C.html\" " +
@@ -91,18 +88,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testInlineLinkLabel/TestInlineLinkLabel.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testInlineLinkLabel/TestInlineLinkLabel.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,19 +34,18 @@
public class TestInlineLinkLabel extends JavadocTester {
- private static final String BUG_ID = "4524136";
private static final String[][] TEST = {
//Search for the label to the package link.
- {BUG_ID + "/pkg/C1.html" ,
+ { "pkg/C1.html" ,
"<a href=\"../pkg/package-summary.html\"><code>Here is a link to a package</code></a>"},
//Search for the label to the class link
- {BUG_ID + "/pkg/C1.html" ,
+ { "pkg/C1.html" ,
"<a href=\"../pkg/C2.html\" title=\"class in pkg\"><code>Here is a link to a class</code></a>"}
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"};
/**
* The entry point of the test.
@@ -57,18 +56,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testInterface/TestInterface.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testInterface/TestInterface.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,24 +37,21 @@
public class TestInterface extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4682448-4947464-5029946";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/Interface.html",
+ { "pkg/Interface.html",
"<pre>int method()</pre>"},
- {BUG_ID + "/pkg/Interface.html",
+ { "pkg/Interface.html",
"<pre>static final int field</pre>"},
// Make sure known implementing class list is correct and omits type parameters.
- {BUG_ID + "/pkg/Interface.html",
+ { "pkg/Interface.html",
"<dl>\n" +
"<dt>All Known Implementing Classes:</dt>\n" +
"<dd><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" +
@@ -63,7 +60,7 @@
"</dl>"},
// Make sure "All Implemented Interfaces": has substituted type parameters
- {BUG_ID + "/pkg/Child.html",
+ { "pkg/Child.html",
"<dl>\n" +
"<dt>All Implemented Interfaces:</dt>\n" +
"<dd><a href=\"../pkg/Interface.html\" title=\"interface in pkg\">" +
@@ -71,7 +68,7 @@
"</dl>"
},
//Make sure Class Tree has substituted type parameters.
- {BUG_ID + "/pkg/Child.html",
+ { "pkg/Child.html",
"<ul class=\"inheritance\">\n" +
"<li>java.lang.Object</li>\n" +
"<li>\n" +
@@ -88,7 +85,7 @@
"</ul>"
},
//Make sure "Direct Know Subclasses" omits type parameters
- {BUG_ID + "/pkg/Parent.html",
+ { "pkg/Parent.html",
"<dl>\n" +
"<dt>Direct Known Subclasses:</dt>\n" +
"<dd><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" +
@@ -96,7 +93,7 @@
"</dl>"
},
//Make sure "Specified By" has substituted type parameters.
- {BUG_ID + "/pkg/Child.html",
+ { "pkg/Child.html",
"<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n" +
"<dd><code><a href=\"../pkg/Interface.html#method--\">method</a>" +
"</code> in interface <code>" +
@@ -105,7 +102,7 @@
"T</a>></code></dd>"
},
//Make sure "Overrides" has substituted type parameters.
- {BUG_ID + "/pkg/Child.html",
+ { "pkg/Child.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg/Parent.html#method--\">method</a>" +
"</code> in class <code><a href=\"../pkg/Parent.html\" " +
@@ -114,9 +111,9 @@
},
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/Interface.html",
+ { "pkg/Interface.html",
"public int method()"},
- {BUG_ID + "/pkg/Interface.html",
+ { "pkg/Interface.html",
"public static final int field"},
};
@@ -129,18 +126,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testJavaFX/TestJavaFX.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testJavaFX/TestJavaFX.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,58 +33,56 @@
public class TestJavaFX extends JavadocTester {
- private static final String BUG_ID = "7112427";
-
private static final String[][] TEST =
new String[][] {
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<dt><span class=\"seeLabel\">See Also:</span></dt>\n" +
"<dd><a href=\"C.html#getRate--\"><code>getRate()</code></a>, \n" +
"<a href=\"C.html#setRate-double-\"><code>setRate(double)</code></a></dd>"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<pre>public final void setRate(double value)</pre>\n" +
"<div class=\"block\">Sets the value of the property rate.</div>\n" +
"<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Property description:</span></dt>" },
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<pre>public final double getRate()</pre>\n" +
"<div class=\"block\">Gets the value of the property rate.</div>\n" +
"<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Property description:</span></dt>" },
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"C.html#rateProperty\">rate</a></span></code>\n" +
"<div class=\"block\">Defines the direction/speed at which the <code>Timeline</code> is expected to"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<span class=\"simpleTagLabel\">Default value:</span>"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<span class=\"simpleTagLabel\">Since:</span></dt>\n" +
"<dd>JavaFX 8.0</dd>" },
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<p>Sets the value of the property <code>Property</code>"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<p>Gets the value of the property <code>Property</code>"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<span class=\"simpleTagLabel\">Property description:</span>"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"C.html#setTestMethodProperty--\">setTestMethodProperty</a></span>()</code> </td>" },
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<h4>isPaused</h4>\n" +
"<pre>public final double isPaused()</pre>\n" +
"<div class=\"block\">Gets the value of the property paused.</div>" },
- {"./" + BUG_ID + "/D.html",
+ { "D.html",
"<h3>Properties inherited from class <a href=\"C.html\" title=\"class in <Unnamed>\">C</a></h3>\n" +
"<code><a href=\"C.html#pausedProperty\">paused</a>, <a href=\"C.html#rateProperty\">rate</a></code></li>" },
};
private static final String[][] NO_TEST =
new String[][] {
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"A()"},
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-javafx",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-javafx",
SRC_DIR + "/C.java", SRC_DIR + "/D.java"
};
@@ -97,18 +95,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testJavascript/TestJavascript.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testJavascript/TestJavascript.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,22 +34,19 @@
public class TestJavascript extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4665566-4855876-8012375";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", SRC_DIR +
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg", SRC_DIR +
"/TestJavascript.java"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../index.html?pkg/C.html\" target=\"_top\">Frames</a>"},
- {BUG_ID + "/TestJavascript.html",
+ { "TestJavascript.html",
"<a href=\"index.html?TestJavascript.html\" target=\"_top\">Frames</a>"},
- {BUG_ID + "/index.html",
+ { "index.html",
"<script type=\"text/javascript\">\n" +
" targetPage = \"\" + window.location.search;\n" +
" if (targetPage != \"\" && targetPage != \"undefined\")\n" +
@@ -104,7 +101,7 @@
"</script>"},
//Make sure title javascript only runs if is-external is not true
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
" try {\n" +
" if (location.href.indexOf('is-external=true') == -1) {\n" +
" parent.document.title=\"C\";\n" +
@@ -123,18 +120,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testLambdaFeature/TestLambdaFeature.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLambdaFeature/TestLambdaFeature.java Tue Apr 22 17:57:40 2014 -0700
@@ -40,25 +40,22 @@
public class TestLambdaFeature extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8004893-8022738";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg", "pkg1"
};
private static final String[] ARGS_1 = new String[] {
- "-d", BUG_ID + "-2", "-sourcepath", SRC_DIR, "-source", "1.7", "pkg1"
+ "-d", OUTPUT_DIR + "-2", "-sourcepath", SRC_DIR, "-source", "1.7", "pkg1"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<td class=\"colFirst\"><code>default void</code></td>"},
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<pre>default void defaultMethod()</pre>"},
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<caption><span id=\"t0\" class=\"activeTableTab\"><span>" +
"All Methods</span><span class=\"tabEnd\"> </span></span>" +
"<span id=\"t2\" class=\"tableTab\"><span>" +
@@ -69,14 +66,14 @@
"</span><span id=\"t5\" class=\"tableTab\"><span>" +
"<a href=\"javascript:show(16);\">Default Methods</a></span>" +
"<span class=\"tabEnd\"> </span></span></caption>"},
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<dl>\n" +
"<dt>Functional Interface:</dt>\n" +
"<dd>This is a functional interface and can therefore be used as " +
"the assignment target for a lambda expression or method " +
"reference.</dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg1/FuncInf.html",
+ { "pkg1/FuncInf.html",
"<dl>\n" +
"<dt>Functional Interface:</dt>\n" +
"<dd>This is a functional interface and can therefore be used as " +
@@ -85,25 +82,25 @@
"</dl>"}
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<td class=\"colFirst\"><code>default default void</code></td>"},
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<pre>default default void defaultMethod()</pre>"},
- {BUG_ID + "/pkg/B.html",
+ { "pkg/B.html",
"<td class=\"colFirst\"><code>default void</code></td>"},
- {BUG_ID + "/pkg1/NotAFuncInf.html",
+ { "pkg1/NotAFuncInf.html",
"<dl>\n" +
"<dt>Functional Interface:</dt>\n" +
"<dd>This is a functional interface and can therefore be used as " +
"the assignment target for a lambda expression or method " +
"reference.</dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg/B.html",
+ { "pkg/B.html",
"<dl>\n" +
"<dt>Functional Interface:</dt>"}
};
private static final String[][] NEGATED_TEST_1 = {
- {BUG_ID + "-2/pkg1/FuncInf.html",
+ { "pkg1/FuncInf.html",
"<dl>\n" +
"<dt>Functional Interface:</dt>"}
};
@@ -118,18 +115,4 @@
tester.run(ARGS_1, NO_TEST, NEGATED_TEST_1);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testLeadingSpaces/LeadingSpaces.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLeadingSpaces/LeadingSpaces.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,9 +37,8 @@
public class LeadingSpaces extends JavadocTester {
- private static final String BUG_ID = "4232882-8014636";
private static final String[][] TEST = {
- {BUG_ID + "/LeadingSpaces.html",
+ { "LeadingSpaces.html",
" 1\n" +
" 2\n" +
" 3\n" +
@@ -50,7 +49,7 @@
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
SRC_DIR + "/LeadingSpaces.java"};
/**
@@ -64,20 +63,6 @@
}
/**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
-
- /**
This leading spaces in the <pre> block below should be
preserved.
<pre>
--- a/langtools/test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,19 +34,17 @@
public class TestLegacyTaglet extends JavadocTester {
- private static final String BUG_ID = "4638723-8015882";
-
private static final String[] ARGS =
- new String[] {"-d", BUG_ID, "-sourcepath", SRC_DIR,
+ new String[] {"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-tagletpath", SRC_DIR, "-taglet", "ToDoTaglet", "-taglet", "Check",
"-taglet", "UnderlineTaglet", SRC_DIR + "/C.java"};
private static final String[][] TEST = new String[][] {
- {BUG_ID + "/C.html", "This is an <u>underline</u>"},
- {BUG_ID + "/C.html",
+ { "C.html", "This is an <u>underline</u>"},
+ { "C.html",
"<DT><B>To Do:</B><DD><table cellpadding=2 cellspacing=0><tr>" +
"<td bgcolor=\"yellow\">Finish this class.</td></tr></table></DD>"},
- {BUG_ID + "/C.html",
+ { "C.html",
"<DT><B>To Do:</B><DD><table cellpadding=2 cellspacing=0><tr>" +
"<td bgcolor=\"yellow\">Tag in Method.</td></tr></table></DD>"}
};
@@ -63,18 +61,4 @@
}
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testLinkOption/TestBadLinkOption.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLinkOption/TestBadLinkOption.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,11 +34,9 @@
public class TestBadLinkOption extends JavadocTester {
- private static final String BUG_ID = "4720957";
-
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
- "-link", BUG_ID, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
+ "-link", OUTPUT_DIR, "pkg"
};
private static final String[][] TEST = {
@@ -58,18 +56,4 @@
tester.run(ARGS, TEST, NEG_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testLinkOption/TestLinkOption.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLinkOption/TestLinkOption.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,33 +36,31 @@
public class TestLinkOption extends JavadocTester {
- private static final String BUG_ID = "4720957-5020118-8038976";
-
//Generate the documentation using -linkoffline and a URL as the first parameter.
private static final String[] ARGS1 = new String[] {
- "-d", BUG_ID + "-1", "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR + "-1", "-sourcepath", SRC_DIR,
"-linkoffline", "http://java.sun.com/j2se/1.4/docs/api/",
SRC_DIR, "-package", "pkg", "java.lang"
};
private static final String[][] TEST1 = {
- {BUG_ID + "-1/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true\" " +
"title=\"class or interface in java.lang\"><code>Link to String Class</code></a>"
},
//Make sure the parameters are indented properly when the -link option is used.
- {BUG_ID + "-1/pkg/C.html",
+ { "pkg/C.html",
"(int p1,\n" +
" int p2,\n" +
" int p3)"
},
- {BUG_ID + "-1/pkg/C.html",
+ { "pkg/C.html",
"(int p1,\n" +
" int p2,\n" +
" <a href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true\" title=\"class or interface in java.lang\">" +
"Object</a> p3)"
},
- {BUG_ID + "-1/java/lang/StringBuilderChild.html",
+ { "java/lang/StringBuilderChild.html",
"<pre>public abstract class <span class=\"typeNameLabel\">StringBuilderChild</span>\n" +
"extends <a href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true\" " +
"title=\"class or interface in java.lang\">Object</a></pre>"
@@ -74,14 +72,14 @@
//Generate the documentation using -linkoffline and a relative path as the first parameter.
//We will try linking to the docs generated in test 1 with a relative path.
private static final String[] ARGS2 = new String[] {
- "-d", BUG_ID + "-2", "-sourcepath", SRC_DIR,
- "-linkoffline", "../" + BUG_ID + "-1",
- BUG_ID + "-1", "-package", "pkg2"
+ "-d", OUTPUT_DIR + "-2", "-sourcepath", SRC_DIR,
+ "-linkoffline", "../" + OUTPUT_DIR + "-1",
+ OUTPUT_DIR + "-1", "-package", "pkg2"
};
private static final String[][] TEST2 = {
- {BUG_ID + "-2/pkg2/C2.html",
- "This is a link to <a href=\"../../" + BUG_ID +
+ { "pkg2/C2.html",
+ "This is a link to <a href=\"../../" + OUTPUT_DIR +
"-1/pkg/C.html?is-external=true\" " +
"title=\"class or interface in pkg\"><code>Class C</code></a>."
}
@@ -92,8 +90,8 @@
* that the command executes with no errors or related warnings.
*/
static String[] createArguments(boolean withTrailingSlash) {
- String packagePath = new File(BUG_ID + "-1").getAbsolutePath();
- String outputDirName = BUG_ID;
+ String packagePath = new File(OUTPUT_DIR + "-1").getAbsolutePath();
+ String outputDirName = OUTPUT_DIR;
if (withTrailingSlash) {
// add the trailing slash, if it is not present!
if (!packagePath.endsWith(FS)) {
@@ -131,18 +129,4 @@
}
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testLinkOption/TestNewLineInLink.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLinkOption/TestNewLineInLink.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,7 +35,6 @@
public class TestNewLineInLink extends JavadocTester {
- private static final String BUG_ID = "4739870";
private static final String[][] NEGATED_TEST =
new String[][] {
{ERROR_OUTPUT,
@@ -43,7 +42,7 @@
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-linkoffline", "http://www.java.sun.com/j2se/1.4/docs/api",
SRC_DIR, "testNewLineInLink"};
@@ -56,18 +55,4 @@
tester.run(ARGS, new String[][] {}, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testLinkTaglet/TestLinkTaglet.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLinkTaglet/TestLinkTaglet.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,18 +35,15 @@
public class TestLinkTaglet extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4732864-6280605-7064544-8014636";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", SRC_DIR +
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg", SRC_DIR +
"/checkPkg/B.java"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"Qualified Link: <a href=\"../pkg/C.InnerC.html\" title=\"class in pkg\"><code>C.InnerC</code></a>.<br/>\n" +
" Unqualified Link1: <a href=\"../pkg/C.InnerC.html\" title=\"class in pkg\"><code>C.InnerC</code></a>.<br/>\n" +
" Unqualified Link2: <a href=\"../pkg/C.InnerC.html\" title=\"class in pkg\"><code>C.InnerC</code></a>.<br/>\n" +
@@ -54,12 +51,12 @@
" Unqualified Link: <a href=\"../pkg/C.html#method-pkg.C.InnerC-pkg.C.InnerC2-\"><code>method(C.InnerC, C.InnerC2)</code></a>.<br/>\n" +
" Unqualified Link: <a href=\"../pkg/C.html#method-pkg.C.InnerC-pkg.C.InnerC2-\"><code>method(InnerC, InnerC2)</code></a>.<br/>"
},
- {BUG_ID + "/pkg/C.InnerC.html",
+ { "pkg/C.InnerC.html",
"Link to member in outer class: <a href=\"../pkg/C.html#MEMBER\"><code>C.MEMBER</code></a> <br/>\n" +
" Link to member in inner class: <a href=\"../pkg/C.InnerC2.html#MEMBER2\"><code>C.InnerC2.MEMBER2</code></a> <br/>\n" +
" Link to another inner class: <a href=\"../pkg/C.InnerC2.html\" title=\"class in pkg\"><code>C.InnerC2</code></a>"
},
- {BUG_ID + "/pkg/C.InnerC2.html",
+ { "pkg/C.InnerC2.html",
"<dl>\n" +
"<dt>Enclosing class:</dt>\n" +
"<dd><a href=\"../pkg/C.html\" title=\"class in pkg\">C</a></dd>\n" +
@@ -79,18 +76,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testLinkToSerialForm/TestLinkToSerialForm.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLinkToSerialForm/TestLinkToSerialForm.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,14 +35,13 @@
public class TestLinkToSerialForm extends JavadocTester {
- private static final String BUG_ID = "4521661";
private static final String[][] TEST = {
- {BUG_ID + "/serialized-form.html", "<a name=\"pkg.C\">"},
- {BUG_ID + "/pkg/C.html", "<a href=\"../serialized-form.html#pkg.C\">"}
+ { "serialized-form.html", "<a name=\"pkg.C\">"},
+ { "pkg/C.html", "<a href=\"../serialized-form.html#pkg.C\">"}
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"};
/**
* The entry point of the test.
@@ -53,18 +52,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testLiteralCodeInPre/TestLiteralCodeInPre.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLiteralCodeInPre/TestLiteralCodeInPre.java Tue Apr 22 17:57:40 2014 -0700
@@ -32,10 +32,6 @@
public class TestLiteralCodeInPre extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8002387-8014636";
- private static final String OUTPUT_DIR = BUG_ID;
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-Xdoclint:none", "pkg"
@@ -43,25 +39,25 @@
//Input for string search tests.
private static final String[][] TEST = {
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"no_pre()</pre>\n" +
"<div class=\"block\">abc<code>def</code>ghi</div>" },
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"no_pre_extra_whitespace()</pre>\n" +
"<div class=\"block\">abc<code>def </code>ghi</div>" },
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"in_pre()</pre>\n" +
"<div class=\"block\"><pre> abc<code> def </code>ghi</pre></div>" },
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"pre_after_text()</pre>\n" +
"<div class=\"block\">xyz <pre> abc<code> def </code>ghi</pre></div>" },
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"after_pre()</pre>\n" +
"<div class=\"block\">xyz <pre> pqr </pre> abc<code>def </code>ghi</div>" },
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"back_in_pre()</pre>\n" +
"<div class=\"block\">xyz <pre> pqr </pre> mno <pre> abc<code> def </code>ghi</pre></div>" },
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"typical_usage_code()</pre>\n" +
"<div class=\"block\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n" +
" Example: <pre><code>\n" +
@@ -70,7 +66,7 @@
" line 3 }\n" +
" </code></pre>\n" +
" and so it goes.</div>" },
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"typical_usage_literal()</pre>\n" +
"<div class=\"block\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n" +
" Example: <pre>\n" +
@@ -79,7 +75,7 @@
" line 3 }\n" +
" </pre>\n" +
" and so it goes.</div>" },
- { BUG_ID + "/pkg/Test.html",
+ { "pkg/Test.html",
"recommended_usage_literal()</pre>\n" +
"<div class=\"block\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n" +
" Example: <pre>\n" +
@@ -98,18 +94,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testMemberInheritence/TestMemberInheritence.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testMemberInheritence/TestMemberInheritence.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,43 +35,41 @@
public class TestMemberInheritence extends JavadocTester {
- private static final String BUG_ID = "4638588-4635809-6256068-6270645";
-
private static final String[][] TEST = {
//Public field should be inherited
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"<a href=\"../pkg/BaseClass.html#pubField\">"},
//Public method should be inherited
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"<a href=\"../pkg/BaseClass.html#pubMethod--\">"},
//Public inner class should be inherited.
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"<a href=\"../pkg/BaseClass.pubInnerClass.html\" title=\"class in pkg\">"},
//Protected field should be inherited
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"<a href=\"../pkg/BaseClass.html#proField\">"},
//Protected method should be inherited
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"<a href=\"../pkg/BaseClass.html#proMethod--\">"},
//Protected inner class should be inherited.
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"<a href=\"../pkg/BaseClass.proInnerClass.html\" title=\"class in pkg\">"},
// New labels as of 1.5.0
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"Nested classes/interfaces inherited from class pkg." +
"<a href=\"../pkg/BaseClass.html\" title=\"class in pkg\">BaseClass</a>"},
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"Nested classes/interfaces inherited from interface pkg." +
"<a href=\"../pkg/BaseInterface.html\" title=\"interface in pkg\">BaseInterface</a>"},
// Test overriding/implementing methods with generic parameters.
- {BUG_ID + "/pkg/BaseClass.html",
+ { "pkg/BaseClass.html",
"<dl>\n" +
"<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n" +
"<dd><code><a href=\"../pkg/BaseInterface.html#getAnnotation-java.lang.Class-\">" +
@@ -81,22 +79,22 @@
"</dl>"},
// Test diamond inheritence member summary (6256068)
- {BUG_ID + "/diamond/Z.html",
+ { "diamond/Z.html",
"<code><a href=\"../diamond/A.html#aMethod--\">aMethod</a></code>"},
// Test that doc is inherited from closed parent (6270645)
- {BUG_ID + "/inheritDist/C.html",
+ { "inheritDist/C.html",
"<div class=\"block\">m1-B</div>"},
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/SubClass.html",
+ { "pkg/SubClass.html",
"<a href=\"../pkg/BaseClass.html#staticMethod--\">staticMethod</a></code>"},
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "diamond",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg", "diamond",
"inheritDist"};
/**
@@ -108,18 +106,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testMemberSummary/TestMemberSummary.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testMemberSummary/TestMemberSummary.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,30 +36,27 @@
public class TestMemberSummary extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4951228-6290760";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg","pkg2"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg","pkg2"
};
//Input for string search tests.
private static final String[][] TEST = {
// Check return type in member summary.
- {BUG_ID + "/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<code><a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">PublicChild</a></code></td>\n" +
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../pkg/PublicChild.html#returnTypeTest--\">" +
"returnTypeTest</a></span>()</code>"
},
// Check return type in member detail.
- {BUG_ID + "/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<pre>public <a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">" +
"PublicChild</a> returnTypeTest()</pre>"
},
// Legacy anchor dimensions (6290760)
- {BUG_ID + "/pkg2/A.html",
+ { "pkg2/A.html",
"<a name=\"f-java.lang.Object:A-\">\n" +
"<!-- -->\n" +
"</a><a name=\"f-T:A-\">\n" +
@@ -77,18 +74,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testMethodTypes/TestMethodTypes.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testMethodTypes/TestMethodTypes.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,20 +33,17 @@
public class TestMethodTypes extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8002304";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"
};
private static final String[][] TEST = {
- {BUG_ID + "/pkg1/A.html",
+ { "pkg1/A.html",
"var methods = {"
},
- {BUG_ID + "/pkg1/A.html",
+ { "pkg1/A.html",
"<caption><span id=\"t0\" class=\"activeTableTab\"><span>All " +
"Methods</span><span class=\"tabEnd\"> </span></span>" +
"<span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:show(1);\">" +
@@ -60,11 +57,11 @@
"</caption>"
},
- {BUG_ID + "/pkg1/A.html",
+ { "pkg1/A.html",
"<tr id=\"i0\" class=\"altColor\">"
},
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<caption><span id=\"t0\" class=\"activeTableTab\"><span>All " +
"Methods</span><span class=\"tabEnd\"> </span></span>" +
"<span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">" +
@@ -74,11 +71,11 @@
"</caption>"
},
- {BUG_ID + "/pkg1/D.html",
+ { "pkg1/D.html",
"var methods = {"
},
- {BUG_ID + "/pkg1/D.html",
+ { "pkg1/D.html",
"<caption><span id=\"t0\" class=\"activeTableTab\"><span>All " +
"Methods</span><span class=\"tabEnd\"> </span></span>" +
"<span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">" +
@@ -92,22 +89,22 @@
"</caption>"
},
- {BUG_ID + "/pkg1/D.html",
+ { "pkg1/D.html",
"<tr id=\"i0\" class=\"altColor\">"
},
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg1/A.html",
+ { "pkg1/A.html",
"<caption><span>Methods</span><span class=\"tabEnd\"> </span>" +
"</caption>"
},
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<caption><span>Methods</span><span class=\"tabEnd\"> </span>" +
"</caption>"
},
- {BUG_ID + "/pkg1/D.html",
+ { "pkg1/D.html",
"<caption><span>Methods</span><span class=\"tabEnd\"> </span>" +
"</caption>"
},
@@ -122,18 +119,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testModifier/TestModifier.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testModifier/TestModifier.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,7 +35,6 @@
public class TestModifier extends JavadocTester {
- private static final String BUG_ID = "4210388";
private static final String[] ARGS =
new String[] {
"-sourcepath", SRC_DIR,
@@ -52,18 +51,4 @@
throw new Error("Javadoc error occured during execution.");
}
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testNavigation/TestNavigation.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testNavigation/TestNavigation.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,32 +34,29 @@
public class TestNavigation extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4131628-4664607";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/A.html", "<li>Prev Class</li>"},
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html", "<li>Prev Class</li>"},
+ { "pkg/A.html",
"<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"typeNameLink\">Next Class</span></a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/A.html\" title=\"annotation in pkg\"><span class=\"typeNameLink\">Prev Class</span></a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"typeNameLink\">Next Class</span></a>"},
- {BUG_ID + "/pkg/E.html",
+ { "pkg/E.html",
"<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"typeNameLink\">Prev Class</span></a>"},
- {BUG_ID + "/pkg/E.html",
+ { "pkg/E.html",
"<a href=\"../pkg/I.html\" title=\"interface in pkg\"><span class=\"typeNameLink\">Next Class</span></a>"},
- {BUG_ID + "/pkg/I.html",
+ { "pkg/I.html",
"<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"typeNameLink\">Prev Class</span></a>"},
- {BUG_ID + "/pkg/I.html", "<li>Next Class</li>"},
+ { "pkg/I.html", "<li>Next Class</li>"},
// Test for 4664607
- {BUG_ID + "/pkg/I.html",
+ { "pkg/I.html",
"<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>\n" +
"<a name=\"navbar.top.firstrow\">\n" +
"<!-- -->\n" +
@@ -75,18 +72,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testNestedGenerics/TestNestedGenerics.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testNestedGenerics/TestNestedGenerics.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,18 +33,15 @@
public class TestNestedGenerics extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "6758050";
-
//Javadoc arguments.
private static final String[] ARGS = new String[]{
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/NestedGenerics.html",
+ { "pkg/NestedGenerics.html",
"<div class=\"block\">Contains <a " +
"href=\"../pkg/NestedGenerics.html#foo-java.util.Map-\"><code>foo" +
"(java.util.Map<A, java.util.Map<A, A>>)</code></a></div>"
@@ -60,18 +57,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testNestedInlineTag/TestNestedInlineTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testNestedInlineTag/TestNestedInlineTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -54,32 +54,31 @@
*/
public void method(){}
- private static final String BUG_ID = "no-bug-id";
private static final String[][] TEST = {
//Test nested inline tag in class description.
- {BUG_ID + "/TestNestedInlineTag.html",
+ { "TestNestedInlineTag.html",
"This should be green, underlined and bold (Class): <u><b><font color=\"green\">My test</font></b></u>"
},
//Test nested inline tag in field description.
- {BUG_ID + "/TestNestedInlineTag.html",
+ { "TestNestedInlineTag.html",
"This should be green, underlined and bold (Field): <u><b><font color=\"green\">My test</font></b></u>"
},
//Test nested inline tag in constructor description.
- {BUG_ID + "/TestNestedInlineTag.html",
+ { "TestNestedInlineTag.html",
"This should be green, underlined and bold (Constructor): <u><b><font color=\"green\">My test</font></b></u>"
},
//Test nested inline tag in method description.
- {BUG_ID + "/TestNestedInlineTag.html",
+ { "TestNestedInlineTag.html",
"This should be green, underlined and bold (Method): <u><b><font color=\"green\">My test</font></b></u>"
}
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-taglet", "testtaglets.UnderlineTaglet",
"-taglet", "testtaglets.BoldTaglet",
"-taglet", "testtaglets.GreenTaglet",
@@ -95,18 +94,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,13 +35,9 @@
public class TestNewLanguageFeatures extends JavadocTester {
- //Test information.
- private static final String BUG_ID =
- "4789689-4905985-4927164-4827184-4993906";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-use", "-sourcepath", SRC_DIR,
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-use", "-sourcepath", SRC_DIR,
"pkg", "pkg1", "pkg2"
};
@@ -52,43 +48,43 @@
// ENUM TESTING
//=================================
//Make sure enum header is correct.
- {BUG_ID + "/pkg/Coin.html", "Enum Coin</h2>"},
+ { "pkg/Coin.html", "Enum Coin</h2>"},
//Make sure enum signature is correct.
- {BUG_ID + "/pkg/Coin.html", "<pre>public enum " +
+ { "pkg/Coin.html", "<pre>public enum " +
"<span class=\"typeNameLabel\">Coin</span>\n" +
"extends java.lang.Enum<<a href=\"../pkg/Coin.html\" " +
"title=\"enum in pkg\">Coin</a>></pre>"
},
//Check for enum constant section
- {BUG_ID + "/pkg/Coin.html", "<caption><span>Enum Constants" +
+ { "pkg/Coin.html", "<caption><span>Enum Constants" +
"</span><span class=\"tabEnd\"> </span></caption>"},
//Detail for enum constant
- {BUG_ID + "/pkg/Coin.html",
+ { "pkg/Coin.html",
"<span class=\"memberNameLink\"><a href=\"../pkg/Coin.html#Dime\">Dime</a></span>"},
//Automatically insert documentation for values() and valueOf().
- {BUG_ID + "/pkg/Coin.html",
+ { "pkg/Coin.html",
"Returns an array containing the constants of this enum type,"},
- {BUG_ID + "/pkg/Coin.html",
+ { "pkg/Coin.html",
"Returns the enum constant of this type with the specified name"},
- {BUG_ID + "/pkg/Coin.html", "for (Coin c : Coin.values())"},
- {BUG_ID + "/pkg/Coin.html",
+ { "pkg/Coin.html", "for (Coin c : Coin.values())"},
+ { "pkg/Coin.html",
"Overloaded valueOf() method has correct documentation."},
- {BUG_ID + "/pkg/Coin.html",
+ { "pkg/Coin.html",
"Overloaded values method has correct documentation."},
//=================================
// TYPE PARAMETER TESTING
//=================================
//Make sure the header is correct.
- {BUG_ID + "/pkg/TypeParameters.html",
+ { "pkg/TypeParameters.html",
"Class TypeParameters<E></h2>"},
//Check class type parameters section.
- {BUG_ID + "/pkg/TypeParameters.html",
+ { "pkg/TypeParameters.html",
"<dt><span class=\"paramLabel\">Type Parameters:</span></dt>\n" +
"<dd><code>E</code> - " +
"the type parameter for this class."},
//Type parameters in @see/@link
- {BUG_ID + "/pkg/TypeParameters.html",
+ { "pkg/TypeParameters.html",
"<dl>\n" +
"<dt><span class=\"seeLabel\">See Also:</span></dt>\n" +
"<dd>" +
@@ -96,28 +92,28 @@
"<code>TypeParameters</code></a></dd>\n" +
"</dl>"},
//Method that uses class type parameter.
- {BUG_ID + "/pkg/TypeParameters.html",
+ { "pkg/TypeParameters.html",
"(<a href=\"../pkg/TypeParameters.html\" title=\"type " +
"parameter in TypeParameters\">E</a> param)"},
//Method type parameter section.
- {BUG_ID + "/pkg/TypeParameters.html",
+ { "pkg/TypeParameters.html",
"<span class=\"paramLabel\">Type Parameters:</span></dt>\n" +
"<dd><code>T</code> - This is the first " +
"type parameter.</dd>\n" +
"<dd><code>V</code> - This is the second type " +
"parameter."},
//Signature of method with type parameters
- {BUG_ID + "/pkg/TypeParameters.html",
+ { "pkg/TypeParameters.html",
"public <T extends java.util.List,V> " +
"java.lang.String[] methodThatHasTypeParameters"},
//Wildcard testing.
- {BUG_ID + "/pkg/Wildcards.html",
+ { "pkg/Wildcards.html",
"<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
"TypeParameters</a><? super java.lang.String> a"},
- {BUG_ID + "/pkg/Wildcards.html",
+ { "pkg/Wildcards.html",
"<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
"TypeParameters</a><? extends java.lang.StringBuffer> b"},
- {BUG_ID + "/pkg/Wildcards.html",
+ { "pkg/Wildcards.html",
"<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
"TypeParameters</a> c"},
//Bad type parameter warnings.
@@ -127,7 +123,7 @@
"\"<BadMethodTypeParam>\" is not a type parameter name."},
//Signature of subclass that has type parameters.
- {BUG_ID + "/pkg/TypeParameterSubClass.html",
+ { "pkg/TypeParameterSubClass.html",
"<pre>public class <span class=\"typeNameLabel\">TypeParameterSubClass<T extends " +
"java.lang.String></span>\n" +
"extends " +
@@ -136,20 +132,20 @@
//Interface generic parameter substitution
//Signature of subclass that has type parameters.
- {BUG_ID + "/pkg/TypeParameters.html",
+ { "pkg/TypeParameters.html",
"<dl>\n" +
"<dt>All Implemented Interfaces:</dt>\n" +
"<dd><a href=\"../pkg/SubInterface.html\" title=\"interface in pkg\">" +
"SubInterface</a><E>, <a href=\"../pkg/SuperInterface.html\" " +
"title=\"interface in pkg\">SuperInterface</a><E></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg/SuperInterface.html",
+ { "pkg/SuperInterface.html",
"<dl>\n" +
"<dt>All Known Subinterfaces:</dt>\n" +
"<dd><a href=\"../pkg/SubInterface.html\" title=\"interface in pkg\">" +
"SubInterface</a><V></dd>\n" +
"</dl>"},
- {BUG_ID + "/pkg/SubInterface.html",
+ { "pkg/SubInterface.html",
"<dl>\n" +
"<dt>All Superinterfaces:</dt>\n" +
"<dd><a href=\"../pkg/SuperInterface.html\" title=\"interface in pkg\">" +
@@ -159,10 +155,10 @@
//=================================
// VAR ARG TESTING
//=================================
- {BUG_ID + "/pkg/VarArgs.html", "(int... i)"},
- {BUG_ID + "/pkg/VarArgs.html", "(int[][]... i)"},
- {BUG_ID + "/pkg/VarArgs.html", "-int:A...-"},
- {BUG_ID + "/pkg/VarArgs.html",
+ { "pkg/VarArgs.html", "(int... i)"},
+ { "pkg/VarArgs.html", "(int[][]... i)"},
+ { "pkg/VarArgs.html", "-int:A...-"},
+ { "pkg/VarArgs.html",
"<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
"TypeParameters</a>... t"},
@@ -170,7 +166,7 @@
// ANNOTATION TYPE TESTING
//=================================
//Make sure the summary links are correct.
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"<li>Summary: </li>\n" +
"<li>Field | </li>\n" +
"<li><a href=\"#annotation.type.required.element.summary\">" +
@@ -178,26 +174,26 @@
"<li>" +
"<a href=\"#annotation.type.optional.element.summary\">Optional</a></li>"},
//Make sure the detail links are correct.
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"<li>Detail: </li>\n" +
"<li>Field | </li>\n" +
"<li><a href=\"#annotation.type.element.detail\">Element</a></li>"},
//Make sure the heading is correct.
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"Annotation Type AnnotationType</h2>"},
//Make sure the signature is correct.
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"public @interface <span class=\"memberNameLabel\">AnnotationType</span>"},
//Make sure member summary headings are correct.
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"<h3>Required Element Summary</h3>"},
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"<h3>Optional Element Summary</h3>"},
//Make sure element detail heading is correct
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"Element Detail"},
//Make sure default annotation type value is printed when necessary.
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"<dl>\n" +
"<dt>Default:</dt>\n" +
"<dd>\"unknown\"</dd>\n" +
@@ -208,12 +204,12 @@
//=================================
//PACKAGE
- {BUG_ID + "/pkg/package-summary.html",
+ { "pkg/package-summary.html",
"<a href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</a>(<a href=\"../pkg/AnnotationType.html#optional--\">optional</a>=\"Package Annotation\",\n" +
" <a href=\"../pkg/AnnotationType.html#required--\">required</a>=1994)"},
//CLASS
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<pre><a href=\"../pkg/AnnotationType.html\" " +
"title=\"annotation in pkg\">@AnnotationType</a>(" +
"<a href=\"../pkg/AnnotationType.html#optional--\">optional</a>" +
@@ -225,7 +221,7 @@
"extends java.lang.Object</pre>"},
//FIELD
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<pre><a href=\"../pkg/AnnotationType.html\" " +
"title=\"annotation in pkg\">@AnnotationType</a>(" +
"<a href=\"../pkg/AnnotationType.html#optional--\">optional</a>" +
@@ -235,7 +231,7 @@
"public int field</pre>"},
//CONSTRUCTOR
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<pre><a href=\"../pkg/AnnotationType.html\" " +
"title=\"annotation in pkg\">@AnnotationType</a>(" +
"<a href=\"../pkg/AnnotationType.html#optional--\">optional</a>" +
@@ -245,7 +241,7 @@
"public AnnotationTypeUsage()</pre>"},
//METHOD
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<pre><a href=\"../pkg/AnnotationType.html\" " +
"title=\"annotation in pkg\">@AnnotationType</a>(" +
"<a href=\"../pkg/AnnotationType.html#optional--\">optional</a>" +
@@ -255,7 +251,7 @@
"public void method()</pre>"},
//METHOD PARAMS
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<pre>public void methodWithParams(" +
"<a href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">" +
"@AnnotationType</a>(<a href=\"../pkg/AnnotationType.html#optional--\">" +
@@ -265,7 +261,7 @@
" int undocmented)</pre>"},
//CONSTRUCTOR PARAMS
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<pre>public AnnotationTypeUsage(<a " +
"href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">" +
"@AnnotationType</a>(<a href=\"../pkg/AnnotationType.html#optional--\">" +
@@ -279,59 +275,59 @@
//=================================
//Integer
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#d--\">d</a>=3.14,"},
//Double
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#d--\">d</a>=3.14,"},
//Boolean
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#b--\">b</a>=true,"},
//String
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#s--\">s</a>=\"sigh\","},
//Class
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#c--\">c</a>=<a href=\"../pkg2/Foo.html\" title=\"class in pkg2\">Foo.class</a>,"},
//Bounded Class
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#w--\">w</a>=<a href=\"../pkg/TypeParameterSubClass.html\" title=\"class in pkg\">TypeParameterSubClass.class</a>,"},
//Enum
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#e--\">e</a>=<a href=\"../pkg/Coin.html#Penny\">Penny</a>,"},
//Annotation Type
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#a--\">a</a>=<a href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</a>(<a href=\"../pkg/AnnotationType.html#optional--\">optional</a>=\"foo\",<a href=\"../pkg/AnnotationType.html#required--\">required</a>=1994),"},
//String Array
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#sa--\">sa</a>={\"up\",\"down\"},"},
//Primitive
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<a href=\"../pkg1/A.html#primitiveClassTest--\">primitiveClassTest</a>=boolean.class,"},
//XXX: Add array test case after this if fixed:
//5020899: Incorrect internal representation of class-valued annotation elements
//Make sure that annotations are surrounded by <pre> and </pre>
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"<pre><a href=\"../pkg1/A.html\" title=\"annotation in pkg1\">@A</a>"},
- {BUG_ID + "/pkg1/B.html",
+ { "pkg1/B.html",
"public interface <span class=\"typeNameLabel\">B</span></pre>"},
//==============================================================
// Handle multiple bounds.
//==============================================================
- {BUG_ID + "/pkg/MultiTypeParameters.html",
+ { "pkg/MultiTypeParameters.html",
"public <T extends java.lang.Number & java.lang.Runnable> T foo(T t)"},
//==============================================================
@@ -339,79 +335,79 @@
//==============================================================
//ClassUseTest1: <T extends Foo & Foo2>
- {BUG_ID + "/pkg2/class-use/Foo.html",
+ { "pkg2/class-use/Foo.html",
"<caption><span>Classes in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" +
"Foo</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo.html",
+ { "pkg2/class-use/Foo.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../../pkg2/ClassUseTest1.html\" " +
"title=\"class in pkg2\">ClassUseTest1</a><T extends " +
"<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo" +
"</a> & <a href=\"../../pkg2/Foo2.html\" title=\"interface in pkg2\">" +
"Foo2</a>></span></code> </td>"
},
- {BUG_ID + "/pkg2/class-use/Foo.html",
+ { "pkg2/class-use/Foo.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo.html\" title=\"class in " +
"pkg2\">Foo</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo.html",
+ { "pkg2/class-use/Foo.html",
"<td class=\"colLast\"><span class=\"typeNameLabel\">ClassUseTest1." +
"</span><code><span class=\"memberNameLink\"><a href=\"../../pkg2/" +
"ClassUseTest1.html#method-T-\">method</a></span>" +
"(T t)</code> </td>"
},
- {BUG_ID + "/pkg2/class-use/Foo.html",
+ { "pkg2/class-use/Foo.html",
"<caption><span>Fields in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" +
"Foo</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo.html",
+ { "pkg2/class-use/Foo.html",
"td class=\"colFirst\"><code><a href=\"../../pkg2/" +
"ParamTest.html\" title=\"class in pkg2\">ParamTest</a>" +
"<<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\"" +
">Foo</a>></code></td>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<caption><span>Fields in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> declared as <a href=\"../" +
"../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" +
"</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<td class=\"colFirst\"><code><a href=\"../../pkg2/" +
"ParamTest.html\" title=\"class in pkg2\">ParamTest</a><<a " +
"href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</a" +
">></code></td>"
},
- {BUG_ID + "/pkg2/class-use/Foo2.html",
+ { "pkg2/class-use/Foo2.html",
"<caption><span>Classes in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo2.html\" title=\"interface " +
"in pkg2\">Foo2</a></span><span class=\"tabEnd\"> " +
"</span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo2.html",
+ { "pkg2/class-use/Foo2.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../../pkg2/ClassUseTest1.html\" " +
"title=\"class in pkg2\">ClassUseTest1</a><T extends " +
"<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo" +
"</a> & <a href=\"../../pkg2/Foo2.html\" title=\"interface in pkg2\">" +
"Foo2</a>></span></code> </td>"
},
- {BUG_ID + "/pkg2/class-use/Foo2.html",
+ { "pkg2/class-use/Foo2.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo2.html\" title=\"interface " +
"in pkg2\">Foo2</a></span><span class=\"tabEnd\"> " +
"</span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo2.html",
+ { "pkg2/class-use/Foo2.html",
"<td class=\"colLast\"><span class=\"typeNameLabel\">" +
"ClassUseTest1.</span><code><span class=\"memberNameLink\"><a href=\"../../" +
"pkg2/ClassUseTest1.html#method-T-\">method</a></span>" +
@@ -419,53 +415,53 @@
},
//ClassUseTest2: <T extends ParamTest<Foo3>>
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<caption><span>Classes in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/ParamTest.html\" title=\"class " +
"in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../../pkg2/ClassUseTest2.html\" " +
"title=\"class in pkg2\">ClassUseTest2</a><T extends " +
"<a href=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">" +
"ParamTest</a><<a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" +
"Foo3</a>>></span></code> </td>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/ParamTest.html\" title=\"class " +
"in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<td class=\"colLast\"><span class=\"typeNameLabel\">ClassUseTest2." +
"</span><code><span class=\"memberNameLink\"><a href=\"../../pkg2/" +
"ClassUseTest2.html#method-T-\">method</a></span>" +
"(T t)</code> </td>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<caption><span>Fields in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> declared as <a href=\"../" +
"../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" +
"</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<td class=\"colFirst\"><code><a href=\"../../pkg2/" +
"ParamTest.html\" title=\"class in pkg2\">ParamTest</a>" +
"<<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" +
"Foo</a>></code></td>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/ParamTest.html\" title=\"class " +
"in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest.html",
+ { "pkg2/class-use/ParamTest.html",
"<td class=\"colFirst\"><code><T extends <a href=\"../" +
"../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" +
"</a><<a href=\"../../pkg2/Foo3.html\" title=\"class in " +
@@ -475,40 +471,40 @@
"pkg2\">Foo3</a>></code></td>"
},
- {BUG_ID + "/pkg2/class-use/Foo3.html",
+ { "pkg2/class-use/Foo3.html",
"<caption><span>Classes in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" +
"Foo3</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo3.html",
+ { "pkg2/class-use/Foo3.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../../pkg2/ClassUseTest2.html\" " +
"title=\"class in pkg2\">ClassUseTest2</a><T extends " +
"<a href=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">" +
"ParamTest</a><<a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" +
"Foo3</a>>></span></code> </td>"
},
- {BUG_ID + "/pkg2/class-use/Foo3.html",
+ { "pkg2/class-use/Foo3.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo3.html\" title=\"class in " +
"pkg2\">Foo3</a></span><span class=\"tabEnd\"> " +
"</span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo3.html",
+ { "pkg2/class-use/Foo3.html",
"<td class=\"colLast\"><span class=\"typeNameLabel\">ClassUseTest2." +
"</span><code><span class=\"memberNameLink\"><a href=\"../../pkg2/" +
"ClassUseTest2.html#method-T-\">method</a></span>" +
"(T t)</code> </td>"
},
- {BUG_ID + "/pkg2/class-use/Foo3.html",
+ { "pkg2/class-use/Foo3.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> that return types with " +
"arguments of type <a href=\"../../pkg2/Foo3.html\" title" +
"=\"class in pkg2\">Foo3</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo3.html",
+ { "pkg2/class-use/Foo3.html",
"<td class=\"colFirst\"><code><T extends <a href=\"../../" +
"pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</a><" +
"<a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3" +
@@ -518,14 +514,14 @@
},
//ClassUseTest3: <T extends ParamTest2<List<? extends Foo4>>>
- {BUG_ID + "/pkg2/class-use/ParamTest2.html",
+ { "pkg2/class-use/ParamTest2.html",
"<caption><span>Classes in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/ParamTest2.html\" title=\"class " +
"in pkg2\">ParamTest2</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest2.html",
+ { "pkg2/class-use/ParamTest2.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../../pkg2/ClassUseTest3.html\" " +
"title=\"class in pkg2\">ClassUseTest3</a><T extends " +
"<a href=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" +
@@ -533,19 +529,19 @@
"<a href=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" +
"Foo4</a>>>></span></code> </td>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest2.html",
+ { "pkg2/class-use/ParamTest2.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/ParamTest2.html\" title=\"class " +
"in pkg2\">ParamTest2</a></span><span class=\"tabEnd\">" +
" </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest2.html",
+ { "pkg2/class-use/ParamTest2.html",
"<td class=\"colLast\"><span class=\"typeNameLabel\">ClassUseTest3" +
".</span><code><span class=\"memberNameLink\"><a href=\"../../pkg2/ClassUseTest3." +
"html#method-T-\">method</a></span>(T t)</code> </td>"
},
- {BUG_ID + "/pkg2/class-use/ParamTest2.html",
+ { "pkg2/class-use/ParamTest2.html",
"<td class=\"colFirst\"><code><T extends <a href=\"../" +
"../pkg2/ParamTest2.html\" title=\"class in pkg2\">" +
"ParamTest2</a><java.util.List<? extends <a href=\".." +
@@ -556,14 +552,14 @@
"class in pkg2\">Foo4</a>>></code></td>"
},
- {BUG_ID + "/pkg2/class-use/Foo4.html",
+ { "pkg2/class-use/Foo4.html",
"<caption><span>Classes in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo4.html\" title=\"class in " +
"pkg2\">Foo4</a></span><span class=\"tabEnd\"> " +
"</span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo4.html",
+ { "pkg2/class-use/Foo4.html",
"<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"../../pkg2/ClassUseTest3.html\" " +
"title=\"class in pkg2\">ClassUseTest3</a><T extends " +
"<a href=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" +
@@ -571,26 +567,26 @@
"<a href=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" +
"Foo4</a>>>></span></code> </td>"
},
- {BUG_ID + "/pkg2/class-use/Foo4.html",
+ { "pkg2/class-use/Foo4.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type parameters of " +
"type <a href=\"../../pkg2/Foo4.html\" title=\"class in " +
"pkg2\">Foo4</a></span><span class=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo4.html",
+ { "pkg2/class-use/Foo4.html",
"<td class=\"colLast\"><span class=\"typeNameLabel\">ClassUseTest3." +
"</span><code><span class=\"memberNameLink\"><a href=\"../../pkg2/ClassUseTest3." +
"html#method-T-\">method</a></span>(T t)</code>" +
" </td>"
},
- {BUG_ID + "/pkg2/class-use/Foo4.html",
+ { "pkg2/class-use/Foo4.html",
"<caption><span>Methods in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> that return types with " +
"arguments of type <a href=\"../../pkg2/Foo4.html\" " +
"title=\"class in pkg2\">Foo4</a></span><span class=\"" +
"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg2/class-use/Foo4.html",
+ { "pkg2/class-use/Foo4.html",
"<td class=\"colFirst\"><code><T extends <a href=\"../" +
"../pkg2/ParamTest2.html\" title=\"class in pkg2\">" +
"ParamTest2</a><java.util.List<? extends <a href=\".." +
@@ -602,7 +598,7 @@
},
//Type parameters in constructor and method args
- {BUG_ID + "/pkg2/class-use/Foo4.html",
+ { "pkg2/class-use/Foo4.html",
"<caption><span>Method parameters in <a href=\"../../pkg2/" +
"package-summary.html\">pkg2</a> with type arguments of " +
"type <a href=\"../../pkg2/Foo4.html\" title=\"class in " +
@@ -623,7 +619,7 @@
"</tr>\n" +
"</tbody>"
},
- {BUG_ID + "/pkg2/class-use/Foo4.html",
+ { "pkg2/class-use/Foo4.html",
"<caption><span>Constructor parameters in <a href=\"../../" +
"pkg2/package-summary.html\">pkg2</a> with type arguments " +
"of type <a href=\"../../pkg2/Foo4.html\" title=\"class in " +
@@ -634,14 +630,14 @@
//=================================
// Annotatation Type Usage
//=================================
- {BUG_ID + "/pkg/class-use/AnnotationType.html",
+ { "pkg/class-use/AnnotationType.html",
"<caption><span>Packages with annotations of type <a href=\"" +
"../../pkg/AnnotationType.html\" title=\"annotation in pkg\">" +
"AnnotationType</a></span><span class=\"tabEnd\"> " +
"</span></caption>"
},
- {BUG_ID + "/pkg/class-use/AnnotationType.html",
+ { "pkg/class-use/AnnotationType.html",
"<caption><span>Classes in <a href=\"../../pkg/" +
"package-summary.html\">pkg</a> with annotations of type " +
"<a href=\"../../pkg/AnnotationType.html\" title=\"" +
@@ -649,7 +645,7 @@
"=\"tabEnd\"> </span></caption>"
},
- {BUG_ID + "/pkg/class-use/AnnotationType.html",
+ { "pkg/class-use/AnnotationType.html",
"<caption><span>Fields in <a href=\"../../pkg/" +
"package-summary.html\">pkg</a> with annotations of type " +
"<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " +
@@ -657,7 +653,7 @@
" </span></caption>"
},
- {BUG_ID + "/pkg/class-use/AnnotationType.html",
+ { "pkg/class-use/AnnotationType.html",
"<caption><span>Methods in <a href=\"../../pkg/" +
"package-summary.html\">pkg</a> with annotations of type " +
"<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " +
@@ -665,7 +661,7 @@
" </span></caption>"
},
- {BUG_ID + "/pkg/class-use/AnnotationType.html",
+ { "pkg/class-use/AnnotationType.html",
"<caption><span>Method parameters in <a href=\"../../pkg/" +
"package-summary.html\">pkg</a> with annotations of type " +
"<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " +
@@ -673,7 +669,7 @@
" </span></caption>"
},
- {BUG_ID + "/pkg/class-use/AnnotationType.html",
+ { "pkg/class-use/AnnotationType.html",
"<caption><span>Constructors in <a href=\"../../pkg/" +
"package-summary.html\">pkg</a> with annotations of type " +
"<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " +
@@ -681,7 +677,7 @@
" </span></caption>"
},
- {BUG_ID + "/pkg/class-use/AnnotationType.html",
+ { "pkg/class-use/AnnotationType.html",
"<caption><span>Constructor parameters in <a href=\"../../" +
"pkg/package-summary.html\">pkg</a> with annotations of " +
"type <a href=\"../../pkg/AnnotationType.html\" title=\"" +
@@ -692,14 +688,14 @@
//=================================
// TYPE PARAMETER IN INDEX
//=================================
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<span class=\"memberNameLink\"><a href=\"pkg2/Foo.html#method-java.util.Vector-\">" +
"method(Vector<Object>)</a></span>"
},
//=================================
// TYPE PARAMETER IN INDEX
//=================================
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<span class=\"memberNameLink\"><a href=\"pkg2/Foo.html#method-java.util.Vector-\">" +
"method(Vector<Object>)</a></span>"
},
@@ -709,12 +705,12 @@
// ENUM TESTING
//=================================
//NO constructor section
- {BUG_ID + "/pkg/Coin.html", "<h3>Constructor Summary</h3>"},
+ { "pkg/Coin.html", "<h3>Constructor Summary</h3>"},
//=================================
// TYPE PARAMETER TESTING
//=================================
//No type parameters in class frame.
- {BUG_ID + "/allclasses-frame.html",
+ { "allclasses-frame.html",
"<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
"TypeParameters</a><<a href=\"../pkg/TypeParameters.html\" " +
"title=\"type parameter in TypeParameters\">E</a>>"
@@ -725,25 +721,25 @@
//===============================================================
//CLASS
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Class Annotation\",\n" +
" <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)\n" +
"public class <span class=\"typeNameLabel\">AnnotationTypeUsage</span></dt><dt>extends java.lang.Object</dt>"},
//FIELD
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Field Annotation\",\n" +
" <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)\n" +
"public int <span class=\"memberNameLabel\">field</span>"},
//CONSTRUCTOR
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Constructor Annotation\",\n" +
" <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)\n" +
"public <span class=\"typeNameLabel\">AnnotationTypeUsage</span>()"},
//METHOD
- {BUG_ID + "/pkg/AnnotationTypeUsage.html",
+ { "pkg/AnnotationTypeUsage.html",
"<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Method Annotation\",\n" +
" <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)\n" +
"public void <span class=\"memberNameLabel\">method</span>()"},
@@ -766,18 +762,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testNoPackagesFile/TestNoPackagesFile.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testNoPackagesFile/TestNoPackagesFile.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,12 +35,9 @@
public class TestNoPackagesFile extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4475679";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
SRC_DIR + "/C.java"
};
@@ -51,24 +48,10 @@
public static void main(String[] args) {
TestNoPackagesFile tester = new TestNoPackagesFile();
tester.run(ARGS, NO_TEST, NO_TEST);
- if ((new java.io.File(BUG_ID + "/packages.html")).exists()) {
+ if ((new java.io.File(OUTPUT_DIR + "/packages.html")).exists()) {
throw new Error("Test Fails: packages file should not be " + "generated anymore.");
} else {
System.out.println("Test passes: packages.html not found.");
}
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testNonFrameWarning/TestNonFrameWarning.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testNonFrameWarning/TestNonFrameWarning.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,16 +33,15 @@
public class TestNonFrameWarning extends JavadocTester {
- private static final String BUG_ID = "7001086";
private static final String[][] TEST = {
- {BUG_ID + "/index.html",
+ { "index.html",
"<p>This document is designed to be viewed using the frames feature. " +
"If you see this message, you are using a non-frame-capable web client. " +
"Link to <a href=\"pkg/package-summary.html\">Non-frame version</a>.</p>"
}
};
private static final String[] ARGS = new String[]{
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
/**
@@ -54,18 +53,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testNotifications/TestNotifications.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testNotifications/TestNotifications.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,12 +36,9 @@
public class TestNotifications extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4657239";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
private static final String[] ARGS2 = new String[] {
@@ -50,10 +47,10 @@
//Input for string search tests.
private static final String[][] TEST = {
- {NOTICE_OUTPUT, "Creating destination directory: \"4657239"}
+ {NOTICE_OUTPUT, "Creating destination directory: \"" + OUTPUT_DIR}
};
private static final String[][] NEGATED_TEST = {
- {NOTICE_OUTPUT, "Creating destination directory: \"4657239"}
+ {NOTICE_OUTPUT, "Creating destination directory: \"" + OUTPUT_DIR}
};
private static final String[][] NEGATED_TEST2 = {
@@ -75,18 +72,4 @@
tester.run(ARGS2, NO_TEST, NEGATED_TEST2);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testOptions/TestOptions.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testOptions/TestOptions.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,19 +33,16 @@
public class TestOptions extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4749567";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-header", "Test header", "-footer", "Test footer",
+ "-d", OUTPUT_DIR, "-header", "Test header", "-footer", "Test footer",
"-sourcepath", SRC_DIR, "pkg"
};
private static final String[][] TEST = {
- {BUG_ID + "/pkg/package-summary.html",
+ { "pkg/package-summary.html",
"<div class=\"aboutLanguage\">Test header</div>"},
- {BUG_ID + "/pkg/package-summary.html",
+ { "pkg/package-summary.html",
"<div class=\"aboutLanguage\">Test footer</div>"}
};
@@ -58,19 +55,5 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testOverridenMethods/TestMultiInheritence.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testOverridenMethods/TestMultiInheritence.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,29 +35,26 @@
public class TestMultiInheritence extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4933335";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg3"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg3"
};
//Method foo() is inherited from BOTH I2 and I3
private static final String[][] TEST = {
- {BUG_ID + "/pkg3/I1.html",
+ { "pkg3/I1.html",
"Methods inherited from interface pkg3." +
"<a href=\"../pkg3/I2.html\" title=\"interface in pkg3\">" +
"I2</a>"},
- {BUG_ID + "/pkg3/I1.html",
+ { "pkg3/I1.html",
"Methods inherited from interface pkg3." +
"<a href=\"../pkg3/I3.html\" title=\"interface in pkg3\">" +
"I3</a>"},
- {BUG_ID + "/pkg3/I0.html",
+ { "pkg3/I0.html",
"Methods inherited from interface pkg3." +
"<a href=\"../pkg3/I2.html\" title=\"interface in pkg3\">" +
"I2</a>"},
- {BUG_ID + "/pkg3/I0.html",
+ { "pkg3/I0.html",
"Methods inherited from interface pkg3." +
"<a href=\"../pkg3/I3.html\" title=\"interface in pkg3\">" +
"I3</a>"},
@@ -66,11 +63,11 @@
//Method foo() is NOT inherited from I4 because it is overriden by
//I3.
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg3/I1.html",
+ { "pkg3/I1.html",
"Methods inherited from interface pkg3." +
"<a href=\"../pkg3/I4.html\" title=\"interface in pkg3\">" +
"I4</a>"},
- {BUG_ID + "/pkg3/I0.html",
+ { "pkg3/I0.html",
"Methods inherited from interface pkg3." +
"<a href=\"../pkg3/I4.html\" title=\"interface in pkg3\">" +
"I4</a>"},
@@ -85,18 +82,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenMethodDocCopy.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenMethodDocCopy.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,17 +35,14 @@
public class TestOverridenMethodDocCopy extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4368820";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1", "pkg2"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<span class=\"descfrmTypeLabel\">Description copied from class: <code>" +
"<a href=\"../pkg1/BaseClass.html#overridenMethodWithDocsToCopy--\">" +
"BaseClass</a></code></span>"
@@ -61,18 +58,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethods.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethods.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,16 +35,14 @@
public class TestOverridenPrivateMethods extends JavadocTester {
- private static final String BUG_ID = "4634891";
-
private static final String[][] TEST = {
//The public method should be overriden
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod"},
//The public method in different package should be overriden
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod"}
};
@@ -53,29 +51,29 @@
//The package private method should be overriden since the base and sub class are in the same
//package. However, the link should not show up because the package private methods are not documented.
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod"},
//The private method in should not be overriden
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#privateMethod"},
//The private method in different package should not be overriden
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#privateMethod"},
//The package private method should not be overriden since the base and sub class are in
//different packages.
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"Overrides:</span></dt><dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod"}
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1", "pkg2"};
/**
* The entry point of the test.
@@ -86,18 +84,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPackageFlag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPackageFlag.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,18 +35,16 @@
public class TestOverridenPrivateMethodsWithPackageFlag extends JavadocTester {
- private static final String BUG_ID = "4634891";
-
private static final String[][] TEST = {
//The public method should be overriden
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod--\">" +
"publicMethod</a></code> in class <code>" +
"<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"},
//The public method in different package should be overriden
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod--\">" +
"publicMethod</a></code> in class <code>" +
@@ -54,7 +52,7 @@
//The package private method should be overriden since the base and sub class are in the same
//package.
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod--\">" +
"packagePrivateMethod</a></code> in class <code>" +
@@ -64,25 +62,25 @@
private static final String[][] NEGATED_TEST = {
//The private method in should not be overriden
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#privateMethod()\">"},
//The private method in different package should not be overriden
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#privateMethod()\">"},
//The package private method should not be overriden since the base and sub class are in
//different packages.
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod()\">"},
};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-package", "pkg1", "pkg2"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-package", "pkg1", "pkg2"};
/**
* The entry point of the test.
@@ -93,18 +91,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPrivateFlag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPrivateFlag.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,22 +35,20 @@
public class TestOverridenPrivateMethodsWithPrivateFlag extends JavadocTester {
- private static final String BUG_ID = "4634891";
-
private static final String[][] TEST = {
//The public method should be overriden
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod"},
//The package private method should be overriden since the base and sub class are in the same
//package.
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod"},
//The public method in different package should be overriden
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod"},
};
@@ -58,18 +56,18 @@
private static final String[][] NEGATED_TEST = {
//The private method in should not be overriden
- {BUG_ID + "/pkg1/SubClass.html",
+ { "pkg1/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#privateMethod"},
//The private method in different package should not be overriden
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#privateMethod"},
//The package private method should not be overriden since the base and sub class are in
//different packages.
- {BUG_ID + "/pkg2/SubClass.html",
+ { "pkg2/SubClass.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod"}
@@ -78,7 +76,7 @@
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-private", "pkg1", "pkg2"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-private", "pkg1", "pkg2"};
/**
* The entry point of the test.
@@ -89,18 +87,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testPackageDeprecation/TestPackageDeprecation.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testPackageDeprecation/TestPackageDeprecation.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,33 +33,30 @@
public class TestPackageDeprecation extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "6492694";
-
//Javadoc arguments.
private static final String[] ARGS1 = new String[]{
- "-d", BUG_ID + "-1", "-sourcepath", SRC_DIR, "-use", "pkg", "pkg1",
+ "-d", OUTPUT_DIR + "-1", "-sourcepath", SRC_DIR, "-use", "pkg", "pkg1",
SRC_DIR + "/C2.java", SRC_DIR + "/FooDepr.java"
};
private static final String[] ARGS2 = new String[]{
- "-d", BUG_ID + "-2", "-sourcepath", SRC_DIR, "-use", "-nodeprecated",
+ "-d", OUTPUT_DIR + "-2", "-sourcepath", SRC_DIR, "-use", "-nodeprecated",
"pkg", "pkg1", SRC_DIR + "/C2.java", SRC_DIR + "/FooDepr.java"
};
//Input for string search tests.
private static final String[][] TEST1 = {
- {BUG_ID + "-1/pkg1/package-summary.html",
+ { "pkg1/package-summary.html",
"<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" +
"<div class=\"block\"><span class=\"deprecationComment\">This package is Deprecated." +
"</span></div>"
},
- {BUG_ID + "-1/deprecated-list.html",
+ { "deprecated-list.html",
"<li><a href=\"#package\">Deprecated Packages</a></li>"
}
};
private static final String[][] NEGATED_TEST2 = {
- {BUG_ID + "-2/overview-summary.html", "pkg1"},
- {BUG_ID + "-2/allclasses-frame.html", "FooDepr"}
+ { "overview-summary.html", "pkg1"},
+ { "allclasses-frame.html", "FooDepr"}
};
/**
@@ -70,14 +67,14 @@
TestPackageDeprecation tester = new TestPackageDeprecation();
tester.run(ARGS1, TEST1, NO_TEST);
tester.run(ARGS2, NO_TEST, NEGATED_TEST2);
- if ((new java.io.File(BUG_ID + "-2/pkg1/" +
+ if ((new java.io.File(OUTPUT_DIR + "-2/pkg1/" +
"package-summary.html")).exists()) {
throw new Error("Test Fails: packages summary should not be" +
"generated for deprecated package.");
} else {
System.out.println("Test passes: package-summary.html not found.");
}
- if ((new java.io.File(BUG_ID + "-2/FooDepr.html")).exists()) {
+ if ((new java.io.File(OUTPUT_DIR + "-2/FooDepr.html")).exists()) {
throw new Error("Test Fails: FooDepr should not be" +
"generated as it is deprecated.");
} else {
@@ -85,18 +82,4 @@
}
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testPackagePage/TestPackagePage.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testPackagePage/TestPackagePage.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,51 +36,50 @@
public class TestPackagePage extends JavadocTester {
- private static final String BUG_ID = "4492643-4689286";
private static final String[][] TEST1 = {
- {BUG_ID + "-1/com/pkg/package-summary.html",
+ { "com/pkg/package-summary.html",
"This is a package page."
},
//With just one package, all general pages link to the single package page.
- {BUG_ID + "-1/com/pkg/C.html",
+ { "com/pkg/C.html",
"<a href=\"../../com/pkg/package-summary.html\">Package</a>"
},
- {BUG_ID + "-1/com/pkg/package-tree.html",
+ { "com/pkg/package-tree.html",
"<li><a href=\"../../com/pkg/package-summary.html\">Package</a></li>"
},
- {BUG_ID + "-1/deprecated-list.html",
+ { "deprecated-list.html",
"<li><a href=\"com/pkg/package-summary.html\">Package</a></li>"
},
- {BUG_ID + "-1/index-all.html",
+ { "index-all.html",
"<li><a href=\"com/pkg/package-summary.html\">Package</a></li>"
},
- {BUG_ID + "-1/help-doc.html",
+ { "help-doc.html",
"<li><a href=\"com/pkg/package-summary.html\">Package</a></li>"
},
};
private static final String[][] TEST2 = {
//With multiple packages, there is no package link in general pages.
- {BUG_ID + "-2/deprecated-list.html",
+ { "deprecated-list.html",
"<li>Package</li>"
},
- {BUG_ID + "-2/index-all.html",
+ { "index-all.html",
"<li>Package</li>"
},
- {BUG_ID + "-2/help-doc.html",
+ { "help-doc.html",
"<li>Package</li>"
},
};
private static final String[] ARGS1 =
new String[] {
- "-d", BUG_ID + "-1", "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR + "-1", "-sourcepath", SRC_DIR,
SRC_DIR + "/com/pkg/C.java"
};
private static final String[] ARGS2 =
new String[] {
- "-d", BUG_ID + "-2", "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR + "-2", "-sourcepath", SRC_DIR,
"com.pkg", "pkg2"
};
@@ -94,18 +93,4 @@
tester.run(ARGS2, TEST2, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testParamTaglet/TestParamTaglet.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testParamTaglet/TestParamTaglet.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,24 +36,21 @@
public class TestParamTaglet extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4802275-4967243";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
//Regular param tags.
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<span class=\"paramLabel\">Parameters:</span></dt>\n" +
"<dd><code>param1</code> - testing 1 2 3.</dd>\n" +
"<dd><code>param2</code> - testing 1 2 3."
},
//Param tags that don't match with any real parameters.
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<span class=\"paramLabel\">Parameters:</span></dt>\n" +
"<dd><code><I>p1</I></code> - testing 1 2 3.</dd>\n" +
"<dd><code><I>p2</I></code> - testing 1 2 3."
@@ -62,7 +59,7 @@
// Param is printed with nothing inherited.
//XXX: in the future when Configuration is available during doc inheritence,
//print a warning for this mistake.
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<code><I>inheritBug</I></code> -"
},
@@ -77,18 +74,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java Tue Apr 22 17:57:40 2014 -0700
@@ -44,46 +44,43 @@
public class TestPrivateClasses extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4780441-4874845-4978816-8014017";
-
//Javadoc arguments.
private static final String[] ARGS1 = new String[] {
- "-d", BUG_ID + "-1", "-sourcepath", SRC_DIR, "pkg", "pkg2"
+ "-d", OUTPUT_DIR + "-1", "-sourcepath", SRC_DIR, "pkg", "pkg2"
};
private static final String[] ARGS2 = new String[] {
- "-d", BUG_ID + "-2", "-sourcepath", SRC_DIR, "-private",
+ "-d", OUTPUT_DIR + "-2", "-sourcepath", SRC_DIR, "-private",
"pkg", "pkg2"
};
// Test output when -private flag is not used.
private static final String[][] TEST1 = {
// Field inheritence from non-public superclass.
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<a href=\"../pkg/PublicChild.html#fieldInheritedFromParent\">" +
"fieldInheritedFromParent</a>"
},
// Method inheritence from non-public superclass.
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<a href=\"../pkg/PublicChild.html#methodInheritedFromParent-int-\">" +
"methodInheritedFromParent</a>"
},
// Field inheritence from non-public superinterface.
- {BUG_ID + "-1/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"<a href=\"../pkg/PublicInterface.html#fieldInheritedFromInterface\">" +
"fieldInheritedFromInterface</a>"
},
// Method inheritence from non-public superinterface.
- {BUG_ID + "-1/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"<a href=\"../pkg/PublicInterface.html#methodInterface-int-\">" +
"methodInterface</a>"
},
// private class does not show up in tree
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<ul class=\"inheritance\">\n" +
"<li>java.lang.Object</li>\n" +
"<li>\n" +
@@ -95,19 +92,19 @@
},
// Method is documented as though it is declared in the inheriting method.
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<pre>public void methodInheritedFromParent(int p1)"
},
//Make sure implemented interfaces from private superclass are inherited
- {BUG_ID + "-1/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"<dl>\n" +
"<dt>All Known Implementing Classes:</dt>\n" +
"<dd><a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">" +
"PublicChild</a></dd>\n" +
"</dl>"},
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<dl>\n" +
"<dt>All Implemented Interfaces:</dt>\n" +
"<dd><a href=\"../pkg/PublicInterface.html\" title=\"interface in pkg\">" +
@@ -115,111 +112,111 @@
"</dl>"},
//Generic interface method test.
- {BUG_ID + "-1/pkg2/C.html",
+ { "pkg2/C.html",
"This comment should get copied to the implementing class"},
};
private static final String[][] NEGATED_TEST1 = {
// Should not document that a method overrides method from private class.
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<span class=\"overrideSpecifyLabel\">Overrides:</span>"},
// Should not document that a method specified by private interface.
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<span class=\"overrideSpecifyLabel\">Specified by:</span>"},
- {BUG_ID + "-1/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"<span class=\"overrideSpecifyLabel\">Specified by:</span>"},
// Should not mention that any documentation was copied.
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"Description copied from"},
- {BUG_ID + "-1/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"Description copied from"},
// Don't extend private classes or interfaces
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"PrivateParent"},
- {BUG_ID + "-1/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"PrivateInterface"},
- {BUG_ID + "-1/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"PrivateInterface"},
- {BUG_ID + "-1/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"All Superinterfaces"},
// Make inherited constant are documented correctly.
- {BUG_ID + "-1/constant-values.html",
+ { "constant-values.html",
"PrivateInterface"},
//Do not inherit private interface method with generic parameters.
//This method has been implemented.
- {BUG_ID + "-1/pkg2/C.html",
+ { "pkg2/C.html",
"<span class=\"memberNameLink\"><a href=\"../pkg2/I.html#hello-T-\">hello</a></span>"},
};
// Test output when -private flag is used.
private static final String[][] TEST2 = {
// Field inheritence from non-public superclass.
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"Fields inherited from class pkg." +
"<a href=\"../pkg/PrivateParent.html\" title=\"class in pkg\">" +
"PrivateParent</a>"
},
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<a href=\"../pkg/PrivateParent.html#fieldInheritedFromParent\">" +
"fieldInheritedFromParent</a>"
},
// Field inheritence from non-public superinterface.
- {BUG_ID + "-2/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"Fields inherited from interface pkg." +
"<a href=\"../pkg/PrivateInterface.html\" title=\"interface in pkg\">" +
"PrivateInterface</a>"
},
- {BUG_ID + "-2/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"<a href=\"../pkg/PrivateInterface.html#fieldInheritedFromInterface\">" +
"fieldInheritedFromInterface</a>"
},
// Method inheritence from non-public superclass.
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"Methods inherited from class pkg." +
"<a href=\"../pkg/PrivateParent.html\" title=\"class in pkg\">" +
"PrivateParent</a>"
},
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<a href=\"../pkg/PrivateParent.html#methodInheritedFromParent-int-\">" +
"methodInheritedFromParent</a>"
},
// Should document that a method overrides method from private class.
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" +
"<dd><code><a href=\"../pkg/PrivateParent.html#methodOverridenFromParent-char:A-int-T-V-java.util.List-\">" +
"methodOverridenFromParent</a></code> in class <code>" +
"<a href=\"../pkg/PrivateParent.html\" title=\"class in pkg\">" +
"PrivateParent</a></code></dd>"},
// Should document that a method is specified by private interface.
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n" +
"<dd><code><a href=\"../pkg/PrivateInterface.html#methodInterface-int-\">" +
"methodInterface</a></code> in interface <code>" +
"<a href=\"../pkg/PrivateInterface.html\" title=\"interface in pkg\">" +
"PrivateInterface</a></code></dd>"},
// Method inheritence from non-public superinterface.
- {BUG_ID + "-2/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"Methods inherited from interface pkg." +
"<a href=\"../pkg/PrivateInterface.html\" title=\"interface in pkg\">" +
"PrivateInterface</a>"
},
- {BUG_ID + "-2/pkg/PrivateInterface.html",
+ { "pkg/PrivateInterface.html",
"<a href=\"../pkg/PrivateInterface.html#methodInterface-int-\">" +
"methodInterface</a>"
},
// Should mention that any documentation was copied.
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"Description copied from"},
// Extend documented private classes or interfaces
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"extends"},
- {BUG_ID + "-2/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"extends"},
- {BUG_ID + "-2/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"All Superinterfaces"},
//Make sure implemented interfaces from private superclass are inherited
- {BUG_ID + "-2/pkg/PublicInterface.html",
+ { "pkg/PublicInterface.html",
"<dl>\n" +
"<dt>All Known Implementing Classes:</dt>\n" +
"<dd><a href=\"../pkg/PrivateParent.html\" title=\"class in pkg\">" +
@@ -228,7 +225,7 @@
"</a></dd>\n" +
"</dl>"},
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<dl>\n" +
"<dt>All Implemented Interfaces:</dt>\n" +
"<dd><a href=\"../pkg/PrivateInterface.html\" title=\"interface in pkg\">" +
@@ -239,11 +236,11 @@
//Since private flag is used, we can document that private interface method
//with generic parameters has been implemented.
- {BUG_ID + "-2/pkg2/C.html",
+ { "pkg2/C.html",
"<span class=\"descfrmTypeLabel\">Description copied from interface: <code>" +
"<a href=\"../pkg2/I.html#hello-T-\">I</a></code></span>"},
- {BUG_ID + "-2/pkg2/C.html",
+ { "pkg2/C.html",
"<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n" +
"<dd><code><a href=\"../pkg2/I.html#hello-T-\">hello</a></code>" +
" in interface <code>" +
@@ -252,14 +249,14 @@
//Make sure when no modifier appear in the class signature, the
//signature is displayed correctly without extra space at the beginning.
- {BUG_ID + "-2/pkg/PrivateParent.html",
+ { "pkg/PrivateParent.html",
"<pre>class <span class=\"typeNameLabel\">PrivateParent</span>"},
- {BUG_ID + "-2/pkg/PublicChild.html",
+ { "pkg/PublicChild.html",
"<pre>public class <span class=\"typeNameLabel\">PublicChild</span>"},
};
private static final String[][] NEGATED_TEST2 = {
- {BUG_ID + "-2/pkg/PrivateParent.html",
+ { "pkg/PrivateParent.html",
"<pre> class <span class=\"typeNameLabel\">PrivateParent</span>"},
};
@@ -273,18 +270,4 @@
tester.run(ARGS2, TEST2, NEGATED_TEST2);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testProfiles/TestProfiles.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testProfiles/TestProfiles.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,60 +33,59 @@
public class TestProfiles extends JavadocTester {
//Test information.
- private static final String BUG_ID = "8006124-8009684-8016921";
- private static final String PROFILE_BUG_ID = BUG_ID + "-1";
- private static final String PACKAGE_BUG_ID = BUG_ID + "-2";
+ private static final String PROFILE_OUTPUT_DIR = OUTPUT_DIR + "-1";
+ private static final String PACKAGE_OUTPUT_DIR = OUTPUT_DIR + "-2";
//Javadoc arguments.
private static final String[] ARGS1 = new String[]{
- "-d", PROFILE_BUG_ID, "-sourcepath", SRC_DIR, "-Xprofilespath",
+ "-d", PROFILE_OUTPUT_DIR, "-sourcepath", SRC_DIR, "-Xprofilespath",
SRC_DIR + "/profile-rtjar-includes.txt", "pkg1", "pkg2",
"pkg3", "pkg4", "pkg5", "pkgDeprecated"
};
private static final String[] ARGS2 = new String[]{
- "-d", PACKAGE_BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2",
+ "-d", PACKAGE_OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1", "pkg2",
"pkg3", "pkg4", "pkg5"
};
//Input for string tests for profiles.
private static final String[][] PROFILES_TEST = {
// Tests for profile-overview-frame.html listing all profiles.
- {PROFILE_BUG_ID + "/profile-overview-frame.html",
+ { "profile-overview-frame.html",
"<span><a href=\"overview-frame.html\" "
+ "target=\"packageListFrame\">All Packages</a></span>"
},
- {PROFILE_BUG_ID + "/profile-overview-frame.html",
+ { "profile-overview-frame.html",
"<li><a href=\"compact1-frame.html\" target=\"packageListFrame\">"
+ "compact1</a></li>"
},
// Tests for profileName-frame.html listing all packages in a profile.
- {PROFILE_BUG_ID + "/compact2-frame.html",
+ { "compact2-frame.html",
"<span><a href=\"overview-frame.html\" target=\"packageListFrame\">"
+ "All Packages</a></span><span><a href=\"profile-overview-frame.html\" "
+ "target=\"packageListFrame\">All Profiles</a></span>"
},
- {PROFILE_BUG_ID + "/compact2-frame.html",
+ { "compact2-frame.html",
"<li><a href=\"pkg4/compact2-package-frame.html\" "
+ "target=\"packageFrame\">pkg4</a></li>"
},
// Test for profileName-package-frame.html listing all types in a
// package of a profile.
- {PROFILE_BUG_ID + "/pkg2/compact2-package-frame.html",
+ { "pkg2/compact2-package-frame.html",
"<a href=\"../compact2-summary.html\" target=\"classFrame\">"
+ "compact2</a> - <a href=\"../pkg2/compact2-package-summary.html\" "
+ "target=\"classFrame\">pkg2</a>"
},
// Tests for profileName-summary.html listing the summary for a profile.
- {PROFILE_BUG_ID + "/compact2-summary.html",
+ { "compact2-summary.html",
"<li><a href=\"compact1-summary.html\">Prev Profile</a></li>\n"
+ "<li><a href=\"compact3-summary.html\">Next Profile</a></li>"
},
- {PROFILE_BUG_ID + "/compact2-summary.html",
+ { "compact2-summary.html",
"<h1 title=\"Profile\" class=\"title\">Profile compact2</h1>"
},
- {PROFILE_BUG_ID + "/compact2-summary.html",
+ { "compact2-summary.html",
"<h3><a href=\"pkg2/compact2-package-summary.html\" "
+ "target=\"classFrame\">pkg2</a></h3>"
},
- {PROFILE_BUG_ID + "/compact2-summary.html",
+ { "compact2-summary.html",
"<ul class=\"blockList\">\n" +
"<li class=\"blockList\">\n"
+ "<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">"
@@ -95,7 +94,7 @@
+ "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, "
+ "listing classes, and an explanation\">"
},
- {PROFILE_BUG_ID + "/compact2-summary.html",
+ { "compact2-summary.html",
"<ul class=\"blockList\">\n" +
"<li class=\"blockList\">\n"
+ "<h3><a href=\"pkg4/compact2-package-summary.html\" target=\"classFrame\">"
@@ -106,14 +105,14 @@
},
// Tests for profileName-package-summary.html listing the summary for a
// package in a profile.
- {PROFILE_BUG_ID + "/pkg5/compact3-package-summary.html",
+ { "pkg5/compact3-package-summary.html",
"<li><a href=\"../pkg4/compact3-package-summary.html\">Prev Package"
+ "</a></li>"
},
- {PROFILE_BUG_ID + "/pkg5/compact3-package-summary.html",
+ { "pkg5/compact3-package-summary.html",
"<div class=\"subTitle\">compact3</div>"
},
- {PROFILE_BUG_ID + "/pkg5/compact3-package-summary.html",
+ { "pkg5/compact3-package-summary.html",
"<ul class=\"blockList\">\n" +
"<li class=\"blockList\">\n"
+ "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" "
@@ -121,20 +120,20 @@
+ "interfaces, and an explanation\">"
},
//Test for "overview-frame.html" showing the "All Profiles" link.
- {PROFILE_BUG_ID + "/overview-frame.html",
+ { "overview-frame.html",
"<span><a href=\"profile-overview-frame.html\" "
+ "target=\"packageListFrame\">All Profiles</a></span>"
},
//Test for "className.html" showing the profile information for the type.
- {PROFILE_BUG_ID + "/pkg2/Class1Pkg2.html",
+ { "pkg2/Class1Pkg2.html",
"<div class=\"subTitle\">compact1, compact2, compact3</div>"
},
- {PROFILE_BUG_ID + "/index.html",
+ { "index.html",
"<frame src=\"overview-frame.html\" name=\"packageListFrame\" " +
"title=\"All Packages\">"
},
//Test for "overview-summary.html" showing the profile list.
- {PROFILE_BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<ul>\n" +
"<li><a href=\"compact1-summary.html\" target=\"classFrame\">" +
"compact1</a></li>\n" +
@@ -145,28 +144,28 @@
"</ul>"
},
//Test deprecated class in profiles
- {PROFILE_BUG_ID + "/compact1-summary.html","<td class=\"colFirst\">"
- + "<a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">Class1Pkg2</a></td>\n"
+ { "compact1-summary.html",
+ "<td class=\"colFirst\"><a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">Class1Pkg2</a></td>\n"
+ "<td class=\"colLast\">Deprecated"
},
- {PROFILE_BUG_ID + "/deprecated-list.html","<td class=\"colOne\">"
- + "<a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">pkg2.Class1Pkg2</a>\n"
+ { "deprecated-list.html",
+ "<td class=\"colOne\"><a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">pkg2.Class1Pkg2</a>\n"
+"<div class=\"block\"><span class=\"deprecationComment\">Class1Pkg2. This class is deprecated</span></div>"
},
//Test deprecated package in profile
- {PROFILE_BUG_ID + "/deprecated-list.html","<td class=\"colOne\">"
- + "<a href=\"pkgDeprecated/package-summary.html\">pkgDeprecated</a>\n"
+ { "deprecated-list.html",
+ "<td class=\"colOne\"><a href=\"pkgDeprecated/package-summary.html\">pkgDeprecated</a>\n"
+"<div class=\"block\"><span class=\"deprecationComment\">This package is <b>Deprecated</b>."
+ " Use pkg1.</span></div>"
},
- {PROFILE_BUG_ID + "/pkgDeprecated/package-summary.html",
+ { "pkgDeprecated/package-summary.html",
"<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
+ "<div class=\"block\"><span class=\"deprecationComment\">This package is <b>Deprecated</b>."
+ " Use pkg1.</span></div>"
},
// need to add teststring when JDK-8015496 will be fixed
//Test exception in profiles
- {PROFILE_BUG_ID + "/compact1-summary.html",
+ { "compact1-summary.html",
"<table class=\"typeSummary\" "
+ "border=\"0\" cellpadding=\"3\" cellspacing=\"0\" "
+ "summary=\"Exception Summary table, listing exceptions, and an explanation\">\n"
@@ -184,7 +183,7 @@
+ " title=\"class in pkg2\">ClassException</a></td>"
},
//Test errors in profiles
- {PROFILE_BUG_ID + "/compact1-summary.html",
+ { "compact1-summary.html",
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" "
+ "summary=\"Error Summary table, listing errors, and an explanation\">\n"
+ "<caption><span>Error Summary</span><span class=\"tabEnd\"> "
@@ -202,19 +201,19 @@
}
};
private static final String[][] PROFILES_NEGATED_TEST = {
- {PROFILE_BUG_ID + "/pkg3/Class2Pkg3.html",
+ { "pkg3/Class2Pkg3.html",
"<div class=\"subTitle\">compact1"
},
- {PROFILE_BUG_ID + "/pkg3/Interface1Pkg3.html",
+ { "pkg3/Interface1Pkg3.html",
"<div class=\"subTitle\">compact1"
},
- {PROFILE_BUG_ID + "/pkg4/compact2-package-frame.html",
+ { "pkg4/compact2-package-frame.html",
"<li><a href=\"Anno1Pkg4.html\" title=\"annotation in pkg4\" "
+ "target=\"classFrame\">Anno1Pkg4</a></li>"
},
- {PROFILE_BUG_ID + "/compact1-summary.html","<li>Use</li>"
+ { "compact1-summary.html","<li>Use</li>"
},
- {PROFILE_BUG_ID + "/compact2-summary.html",
+ { "compact2-summary.html",
"<ul class=\"blockList\">\n" +
"<li class=\"blockList\">\n"
+ "<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">"
@@ -224,7 +223,7 @@
+ "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, "
+ "listing classes, and an explanation\">"
},
- {PROFILE_BUG_ID + "/pkg5/compact3-package-summary.html",
+ { "pkg5/compact3-package-summary.html",
"<ul class=\"blockList\">\n" +
"<li class=\"blockList\">\n"
+ "<li class=\"blockList\">\n"
@@ -234,14 +233,14 @@
}
};
private static final String[][] PACKAGES_TEST = {
- {PACKAGE_BUG_ID + "/overview-frame.html",
+ { "overview-frame.html",
"<h2 title=\"Packages\">Packages</h2>"
},
- {PACKAGE_BUG_ID + "/pkg4/package-frame.html",
+ { "pkg4/package-frame.html",
"<h1 class=\"bar\"><a href=\"../pkg4/package-summary.html\" "
+ "target=\"classFrame\">pkg4</a></h1>"
},
- {PACKAGE_BUG_ID + "/pkg4/package-summary.html",
+ { "pkg4/package-summary.html",
"<div class=\"header\">\n" +
"<h1 title=\"Package\" "
+ "class=\"title\">Package pkg4</h1>\n" +
@@ -249,14 +248,14 @@
}
};
private static final String[][] PACKAGES_NEGATED_TEST = {
- {PACKAGE_BUG_ID + "/overview-frame.html",
+ { "overview-frame.html",
"<span><a href=\"profile-overview-frame.html\" "
+ "target=\"packageListFrame\">All Profiles</a></span>"
},
- {PACKAGE_BUG_ID + "/pkg2/Class1Pkg2.html",
+ { "pkg2/Class1Pkg2.html",
"<div class=\"subTitle\">compact1, compact2, compact3</div>"
},
- {PACKAGE_BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<ul>\n" +
"<li><a href=\"compact1-summary.html\" target=\"classFrame\">" +
"compact1</a></li>\n" +
@@ -268,11 +267,11 @@
}
};
private static final String[] PACKAGES_NEGATED_FILE_TEST = {
- PACKAGE_BUG_ID + "/profile-overview-frame.html",
- PACKAGE_BUG_ID + "/compact2-frame.html",
- PACKAGE_BUG_ID + "/pkg2/compact2-package-frame.html",
- PACKAGE_BUG_ID + "/compact2-summary.html",
- PACKAGE_BUG_ID + "/pkg5/compact3-package-summary.html"
+ "profile-overview-frame.html",
+ "compact2-frame.html",
+ "pkg2/compact2-package-frame.html",
+ "compact2-summary.html",
+ "pkg5/compact3-package-summary.html"
};
/**
@@ -286,18 +285,4 @@
tester.run(ARGS2, PACKAGES_TEST, PACKAGES_NEGATED_TEST, NO_FILE_TEST, PACKAGES_NEGATED_FILE_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testProfiles/TestProfilesConfiguration.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testProfiles/TestProfilesConfiguration.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,26 +33,25 @@
public class TestProfilesConfiguration extends JavadocTester {
//Test information.
- private static final String BUG_ID = "8006124-8009684";
- private static final String PROFILE_CONFIGURATION_BUG_ID = BUG_ID + "-3";
- private static final String NODEPR_NOPKGS_BUG_ID = BUG_ID + "-4";
+ private static final String PROFILE_CONFIGURATION_OUTPUT_DIR = OUTPUT_DIR + "-3";
+ private static final String NODEPR_NOPKGS_OUTPUT_DIR = OUTPUT_DIR + "-4";
//Javadoc arguments.
private static final String[] ARGS3 = new String[]{
- "-d", PROFILE_CONFIGURATION_BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", PROFILE_CONFIGURATION_OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-nocomment", "-keywords", "-Xprofilespath", SRC_DIR +
"/profile-rtjar-includes.txt", "-doctitle", "Simple doctitle",
"-use", "pkg3", "pkg1", "pkg2", "pkg4",
"pkg5", "-packagesheader", "Simple packages header","pkgDeprecated"
};
private static final String[] ARGS4 = new String[]{
- "-d", NODEPR_NOPKGS_BUG_ID, "-sourcepath", SRC_DIR, "-nocomment",
+ "-d", NODEPR_NOPKGS_OUTPUT_DIR, "-sourcepath", SRC_DIR, "-nocomment",
"-nodeprecated", "-keywords", "-Xprofilespath", SRC_DIR +
"/profile-rtjar-includes-nopkgs.txt", "-doctitle", "Simple doctitle",
"-use", "-packagesheader", "Simple packages header",
"pkg1", "pkg2", "pkg3", "pkg4", "pkg5", "pkgDeprecated"
};
private static final String[][] NODEPR_NOPKGS_TEST = {
- {NODEPR_NOPKGS_BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<ul>\n" +
"<li><a href=\"compact2-summary.html\" target=\"classFrame\">" +
"compact2</a></li>\n" +
@@ -60,7 +59,7 @@
"classFrame\">compact3</a></li>\n" +
"</ul>"
},
- {NODEPR_NOPKGS_BUG_ID + "/profile-overview-frame.html",
+ { "profile-overview-frame.html",
"<ul title=\"Profiles\">\n" +
"<li><a href=\"compact2-frame.html\" target=\"packageListFrame\">" +
"compact2</a></li>\n" +
@@ -70,30 +69,30 @@
}
};
private static final String[][] NODEPR_NOPKGS_NEGATED_TEST = {
- {NODEPR_NOPKGS_BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"compact1"
}
};
private static final String[][] PROFILES_CONFIGURATION_TEST = {
//-use option test string fo profile view page
- {PROFILE_CONFIGURATION_BUG_ID + "/compact1-summary.html","<li>Use</li>"
+ { "compact1-summary.html","<li>Use</li>"
},
//-doctitle option test string
- {PROFILE_CONFIGURATION_BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<div class=\"header\">\n" +
"<h1 class=\"title\">Simple doctitle</h1>"
},
//-packagesheader option test string fo profiles
- {PROFILE_CONFIGURATION_BUG_ID + "/profile-overview-frame.html",
+ { "profile-overview-frame.html",
"<h1 title=\"Simple packages header\" class=\"bar\">Simple packages header</h1>"
},
//-keywords option test string for profiles
- {PROFILE_CONFIGURATION_BUG_ID + "/compact1-summary.html",
+ { "compact1-summary.html",
"<meta name=\"keywords\" content=\"compact1 profile\">"
},
//Deprecated information on a package
- {PROFILE_CONFIGURATION_BUG_ID + "/compact1-summary.html",
+ { "compact1-summary.html",
"<h3><a href=\"pkgDeprecated/compact1-package-summary.html\" target=\"" +
"classFrame\">pkgDeprecated</a></h3>\n" +
"<div class=\"deprecatedContent\">" +
@@ -102,7 +101,7 @@
};
private static final String[][] PROFILES_CONFIGURATION_NEGATED_TEST = {
//-nocomments option test string
- {PROFILE_CONFIGURATION_BUG_ID + "/compact1-summary.html",
+ { "compact1-summary.html",
"<div class=\"block\"><i>Class1Pkg2.</i></div>"
}
};
@@ -120,18 +119,4 @@
NODEPR_NOPKGS_NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testRecurseSubPackages/TestRecurseSubPackages.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testRecurseSubPackages/TestRecurseSubPackages.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,10 +34,9 @@
public class TestRecurseSubPackages extends JavadocTester {
- private static final String BUG_ID = "4074234";
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-subpackages", "pkg1", "-exclude", "pkg1.pkg2.packageToExclude"
};
@@ -48,28 +47,14 @@
public static void main(String[] args) {
String[][] tests = new String[6][2];
for (int i = 0; i < tests.length; i++) {
- tests[i][0] = BUG_ID + "/allclasses-frame.html";
+ tests[i][0] = "allclasses-frame.html";
tests[i][1] = "C" + (i+1) + ".html";
}
String[][] negatedTests = new String[][] {
- {BUG_ID + "/allclasses-frame.html", "DummyClass.html"}
+ { "allclasses-frame.html", "DummyClass.html"}
};
TestRecurseSubPackages tester = new TestRecurseSubPackages();
tester.run(ARGS, tests, negatedTests);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testRelativeLinks/TestRelativeLinks.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testRelativeLinks/TestRelativeLinks.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,27 +35,24 @@
public class TestRelativeLinks extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4460354-8014636";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-use", "-sourcepath", SRC_DIR, "pkg", "pkg2"
+ "-d", OUTPUT_DIR, "-use", "-sourcepath", SRC_DIR, "pkg", "pkg2"
};
//Input for string search tests.
private static final String[][] TEST = {
//These relative paths should stay relative because they appear
//in the right places.
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"relative-class-link.html\">relative class link</a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"relative-field-link.html\">relative field link</a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"relative-method-link.html\">relative method link</a>"},
- {BUG_ID + "/pkg/package-summary.html",
+ { "pkg/package-summary.html",
"<a href=\"relative-package-link.html\">relative package link</a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
" <a\n" +
" href=\"relative-multi-line-link.html\">relative-multi-line-link</a>."},
@@ -63,38 +60,38 @@
//places.
//INDEX PAGE
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"./pkg/relative-class-link.html\">relative class link</a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"./pkg/relative-field-link.html\">relative field link</a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"./pkg/relative-method-link.html\">relative method link</a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"<a href=\"./pkg/relative-package-link.html\">relative package link</a>"},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
" <a\n" +
" href=\"./pkg/relative-multi-line-link.html\">relative-multi-line-link</a>."},
//PACKAGE USE
- {BUG_ID + "/pkg/package-use.html",
+ { "pkg/package-use.html",
"<a href=\"../pkg/relative-package-link.html\">relative package link</a>."},
- {BUG_ID + "/pkg/package-use.html",
+ { "pkg/package-use.html",
"<a href=\"../pkg/relative-class-link.html\">relative class link</a>"},
//CLASS_USE
- {BUG_ID + "/pkg/class-use/C.html",
+ { "pkg/class-use/C.html",
"<a href=\"../../pkg/relative-field-link.html\">relative field link</a>"},
- {BUG_ID + "/pkg/class-use/C.html",
+ { "pkg/class-use/C.html",
"<a href=\"../../pkg/relative-method-link.html\">relative method link</a>"},
- {BUG_ID + "/pkg/class-use/C.html",
+ { "pkg/class-use/C.html",
"<a href=\"../../pkg/relative-package-link.html\">relative package link</a>"},
- {BUG_ID + "/pkg/class-use/C.html",
+ { "pkg/class-use/C.html",
" <a\n" +
" href=\"../../pkg/relative-multi-line-link.html\">relative-multi-line-link</a>."},
//PACKAGE OVERVIEW
- {BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"<a href=\"./pkg/relative-package-link.html\">relative package link</a>"},
};
@@ -107,18 +104,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,26 +34,25 @@
public class TestRepeatedAnnotations extends JavadocTester {
//Test information.
- private static final String BUG_ID = "8005092";
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg", "pkg1"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/ContaineeRegDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeRegDoc</a> " +
"<a href=\"../pkg/ContaineeRegDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeRegDoc</a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/RegContainerDoc.html\" " +
"title=\"annotation in pkg\">@RegContainerDoc</a>" +
"(<a href=\"../pkg/RegContainerDoc.html#value--\">value</a>={" +
@@ -61,41 +60,41 @@
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>," +
"<a href=\"../pkg/RegContaineeNotDoc.html\" " +
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>})"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/ContainerSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContainerSynthDoc</a>(" +
"<a href=\"../pkg/ContainerSynthDoc.html#value--\">value</a>=" +
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>)"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " +
"<a href=\"../pkg/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"},
- {BUG_ID + "/pkg/D.html",
+ { "pkg/D.html",
"<a href=\"../pkg/RegDoc.html\" title=\"annotation in pkg\">@RegDoc</a>" +
"(<a href=\"../pkg/RegDoc.html#x--\">x</a>=1)"},
- {BUG_ID + "/pkg/D.html",
+ { "pkg/D.html",
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>" +
"(<a href=\"../pkg/RegArryDoc.html#y--\">y</a>=1)"},
- {BUG_ID + "/pkg/D.html",
+ { "pkg/D.html",
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>" +
"(<a href=\"../pkg/RegArryDoc.html#y--\">y</a>={1,2})"},
- {BUG_ID + "/pkg/D.html",
+ { "pkg/D.html",
"<a href=\"../pkg/NonSynthDocContainer.html\" " +
"title=\"annotation in pkg\">@NonSynthDocContainer</a>" +
"(<a href=\"../pkg/NonSynthDocContainer.html#value--\">value</a>=" +
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>)"},
- {BUG_ID + "/pkg1/C.html",
+ { "pkg1/C.html",
"<a href=\"../pkg1/RegContainerValDoc.html\" " +
"title=\"annotation in pkg1\">@RegContainerValDoc</a>" +
"(<a href=\"../pkg1/RegContainerValDoc.html#value--\">value</a>={" +
@@ -104,7 +103,7 @@
"<a href=\"../pkg1/RegContaineeNotDoc.html\" " +
"title=\"annotation in pkg1\">@RegContaineeNotDoc</a>}," +
"<a href=\"../pkg1/RegContainerValDoc.html#y--\">y</a>=3)"},
- {BUG_ID + "/pkg1/C.html",
+ { "pkg1/C.html",
"<a href=\"../pkg1/ContainerValDoc.html\" " +
"title=\"annotation in pkg1\">@ContainerValDoc</a>" +
"(<a href=\"../pkg1/ContainerValDoc.html#value--\">value</a>={" +
@@ -116,12 +115,12 @@
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/RegContaineeDoc.html\" " +
"title=\"annotation in pkg\">@RegContaineeDoc</a> " +
"<a href=\"../pkg/RegContaineeDoc.html\" " +
"title=\"annotation in pkg\">@RegContaineeDoc</a>"},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a href=\"../pkg/RegContainerNotDoc.html\" " +
"title=\"annotation in pkg\">@RegContainerNotDoc</a>" +
"(<a href=\"../pkg/RegContainerNotDoc.html#value--\">value</a>={" +
@@ -130,12 +129,12 @@
"<a href=\"../pkg/RegContaineeNotDoc.html\" " +
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>})"},
- {BUG_ID + "/pkg1/C.html",
+ { "pkg1/C.html",
"<a href=\"../pkg1/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg1\">@ContaineeSynthDoc</a> " +
"<a href=\"../pkg1/ContaineeSynthDoc.html\" " +
"title=\"annotation in pkg1\">@ContaineeSynthDoc</a>"},
- {BUG_ID + "/pkg1/C.html",
+ { "pkg1/C.html",
"<a href=\"../pkg1/RegContainerValNotDoc.html\" " +
"title=\"annotation in pkg1\">@RegContainerValNotDoc</a>" +
"(<a href=\"../pkg1/RegContainerValNotDoc.html#value--\">value</a>={" +
@@ -144,7 +143,7 @@
"<a href=\"../pkg1/RegContaineeDoc.html\" " +
"title=\"annotation in pkg1\">@RegContaineeDoc</a>}," +
"<a href=\"../pkg1/RegContainerValNotDoc.html#y--\">y</a>=4)"},
- {BUG_ID + "/pkg1/C.html",
+ { "pkg1/C.html",
"<a href=\"../pkg1/ContainerValNotDoc.html\" " +
"title=\"annotation in pkg1\">@ContainerValNotDoc</a>" +
"(<a href=\"../pkg1/ContainerValNotDoc.html#value--\">value</a>={" +
@@ -153,7 +152,7 @@
"<a href=\"../pkg1/ContaineeNotDoc.html\" " +
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>}," +
"<a href=\"../pkg1/ContainerValNotDoc.html#x--\">x</a>=2)"},
- {BUG_ID + "/pkg1/C.html",
+ { "pkg1/C.html",
"<a href=\"../pkg1/ContainerSynthNotDoc.html\" " +
"title=\"annotation in pkg1\">@ContainerSynthNotDoc</a>(" +
"<a href=\"../pkg1/ContainerSynthNotDoc.html#value--\">value</a>=" +
@@ -170,18 +169,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testReturnTag/TestReturnTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testReturnTag/TestReturnTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,12 +34,9 @@
public class TestReturnTag extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4490068";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR +
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, SRC_DIR +
"/TestReturnTag.java"
};
@@ -65,18 +62,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSeeTag/TestSeeTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSeeTag/TestSeeTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,10 +33,6 @@
public class TestSeeTag extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8017191";
- private static final String OUTPUT_DIR = BUG_ID;
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
@@ -44,12 +40,12 @@
//Input for string search tests.
private static final String[][] TEST = {
- { OUTPUT_DIR + "/pkg/Test.html",
+ { "pkg/Test.html",
"<code>List</code>"
}
};
private static final String[][] NEGATED_TEST = {
- { OUTPUT_DIR + "/pkg/Test.html",
+ { "pkg/Test.html",
"<code>List</code>"
}
};
@@ -63,18 +59,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSerialVersionUID/TestSerialVersionUID.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSerialVersionUID/TestSerialVersionUID.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,10 +35,6 @@
public class TestSerialVersionUID extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4525039";
- private static final String OUTPUT_DIR = "docs-" + BUG_ID;
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
"-d", OUTPUT_DIR,
@@ -47,7 +43,7 @@
//Input for string search tests.
private static final String[][] TEST = {
- {OUTPUT_DIR + "/serialized-form.html", "-111111111111111L"}
+ { "serialized-form.html", "-111111111111111L"}
};
/**
@@ -59,18 +55,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSerializedForm/TestSerializedForm.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSerializedForm/TestSerializedForm.java Tue Apr 22 17:57:40 2014 -0700
@@ -21,9 +21,6 @@
* questions.
*/
-import java.lang.*;
-import java.io.*;
-
/*
* @test
* @bug 4341304 4485668 4966728 8032066
@@ -41,82 +38,83 @@
* @run main TestSerializedForm
*/
-public class TestSerializedForm extends JavadocTester implements Serializable {
+import java.lang.*;
+import java.io.*;
- private static final String BUG_ID = "4341304-4485668-4966728";
+public class TestSerializedForm extends JavadocTester implements Serializable {
private static final String[][] TEST = {
- {BUG_ID + FS + "serialized-form.html",
+ { "serialized-form.html",
"protected java.lang.Object readResolve()"},
- {BUG_ID + FS + "serialized-form.html",
+ { "serialized-form.html",
"protected java.lang.Object writeReplace()"},
- {BUG_ID + FS + "serialized-form.html",
+ { "serialized-form.html",
"protected java.lang.Object readObjectNoData()"},
- {BUG_ID + FS + "serialized-form.html",
+ { "serialized-form.html",
"See Also"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class pkg1.NestedInnerClass.InnerClass.ProNestedInnerClass " +
"extends java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class pkg1.PrivateIncludeInnerClass.PriInnerClass extends " +
"java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class pkg1.ProtectedInnerClass.ProInnerClass extends " +
"java.lang.Object implements Serializable</h3>"}
};
private static final String[][] TEST_PRIVATE = {
- {BUG_ID + "-1/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class <a href=\"pkg1/NestedInnerClass.InnerClass.ProNestedInnerClass.html\" " +
"title=\"class in pkg1\">pkg1.NestedInnerClass.InnerClass.ProNestedInnerClass</a> " +
"extends java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "-1/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class <a href=\"pkg1/PrivateIncludeInnerClass.PriInnerClass.html\" title=\"class in pkg1\">" +
"pkg1.PrivateIncludeInnerClass.PriInnerClass</a> extends java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "-1/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class <a href=\"pkg1/ProtectedInnerClass.ProInnerClass.html\" title=\"class in pkg1\">" +
"pkg1.ProtectedInnerClass.ProInnerClass</a> extends java.lang.Object implements Serializable</h3>"}
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class <a href=\"pkg1/NestedInnerClass.InnerClass.ProNestedInnerClass.html\" " +
"title=\"class in pkg1\">pkg1.NestedInnerClass.InnerClass.ProNestedInnerClass</a> " +
"extends java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class <a href=\"pkg1/PrivateInnerClass.PriInnerClass.html\" title=\"class in pkg1\">" +
"pkg1.PrivateInnerClass.PriInnerClass</a> extends java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class <a href=\"pkg1/ProtectedInnerClass.ProInnerClass.html\" title=\"class in pkg1\">" +
"pkg1.ProtectedInnerClass.ProInnerClass</a> extends java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class pkg1.PublicExcludeInnerClass.PubInnerClass extends java.lang.Object implements " +
"Serializable</h3>"}
};
private static final String[][] NEGATED_TEST_PRIVATE = {
- {BUG_ID + "-1/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class pkg1.NestedInnerClass.InnerClass.ProNestedInnerClass " +
"extends java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "-1/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class pkg1.PrivateInnerClass.PriInnerClass extends " +
"java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "-1/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class pkg1.ProtectedInnerClass.ProInnerClass extends " +
"java.lang.Object implements Serializable</h3>"},
- {BUG_ID + "-1/serialized-form.html",
+ { "serialized-form.html",
"<h3>Class <a href=\"pkg1/PublicExcludeInnerClass.PubInnerClass.html\" " +
"title=\"class in pkg1\">pkg1.PublicExcludeInnerClass.PubInnerClass</a> " +
"extends java.lang.Object implements Serializable</h3>"}
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
SRC_DIR + "/TestSerializedForm.java", "pkg1"
};
private static final String[] ARGS_PRIVATE = new String[] {
- "-private", "-d", BUG_ID + "-1", "-sourcepath", SRC_DIR,
+ "-private", "-d", OUTPUT_DIR + "-1", "-sourcepath", SRC_DIR,
SRC_DIR + "/TestSerializedForm.java", "pkg1"
};
@@ -138,20 +136,6 @@
}
/**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
-
- /**
* @param s ObjectInputStream.
* @throws IOException when there is an I/O error.
* @serial
--- a/langtools/test/com/sun/javadoc/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,12 +36,10 @@
public class TestSerializedFormDeprecationInfo extends JavadocTester {
- private static final String BUG_ID = "6802694";
-
// Test for normal run of javadoc. The serialized-form.html should
// display the inline comments, tags and deprecation information if any.
private static final String[][] TEST_CMNT_DEPR = {
- {BUG_ID + "/serialized-form.html", "<dl>\n" +
+ { "serialized-form.html", "<dl>\n" +
"<dt><span class=\"throwsLabel\">Throws:</span></dt>\n" +
"<dd><code>" +
"java.io.IOException</code></dd>\n" +
@@ -50,7 +48,7 @@
"<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>C1.setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" <span class=\"deprecationComment\">As of JDK version 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
@@ -66,7 +64,7 @@
"<dd><a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
"<code>C1.setUndecorated(boolean)</code></a></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" <span class=\"deprecationComment\">As of JDK version 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\">" +
@@ -78,7 +76,7 @@
"IOException</code></code></dd>\n" +
"<dd><code>java.io.IOException</code></dd>\n" +
"</dl>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">Deprecated.</span>" +
" </div>\n" +
"<div class=\"block\">" +
@@ -88,14 +86,14 @@
// not display the inline comments and tags but should display deprecation
// information if any.
private static final String[][] TEST_NOCMNT = {
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<pre>boolean undecorated</pre>\n" +
"<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> <span class=\"deprecationComment\">" +
"As of JDK version 1.5, replaced by\n" +
" <a href=\"pkg1/C1.html#setUndecorated-boolean-\"><code>" +
"setUndecorated(boolean)</code></a>.</span></div>\n" +
"</li>"},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<span class=\"deprecatedLabel\">" +
"Deprecated.</span> <span class=\"deprecationComment\">As of JDK version" +
" 1.5, replaced by\n" +
@@ -117,19 +115,19 @@
private static final String[] ARGS1 =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"};
private static final String[] ARGS2 =
new String[] {
- "-d", BUG_ID, "-nocomment", "-sourcepath", SRC_DIR, "pkg1"};
+ "-d", OUTPUT_DIR, "-nocomment", "-sourcepath", SRC_DIR, "pkg1"};
private static final String[] ARGS3 =
new String[] {
- "-d", BUG_ID, "-nodeprecated", "-sourcepath", SRC_DIR, "pkg1"};
+ "-d", OUTPUT_DIR, "-nodeprecated", "-sourcepath", SRC_DIR, "pkg1"};
private static final String[] ARGS4 =
new String[] {
- "-d", BUG_ID, "-nocomment", "-nodeprecated", "-sourcepath",
+ "-d", OUTPUT_DIR, "-nocomment", "-nodeprecated", "-sourcepath",
SRC_DIR, "pkg1"};
/**
@@ -144,18 +142,4 @@
tester.run(ARGS4, TEST_NOCMNT_NODEPR, TEST_NODEPR);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSimpleTag/TestSimpleTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSimpleTag/TestSimpleTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,22 +37,20 @@
public class TestSimpleTag extends JavadocTester {
- private static final String BUG_ID = "4695326-4750173-4920381";
-
private static final String[][] TEST =
new String[][] {
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<span class=\"simpleTagLabel\">Todo:</span>"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<span class=\"simpleTagLabel\">EJB Beans:</span>"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<span class=\"simpleTagLabel\">Regular Tag:</span>"},
- {"./" + BUG_ID + "/C.html",
+ { "C.html",
"<span class=\"simpleTagLabel\">Back-Slash-Tag:</span>"},
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-tag", "todo",
"-tag", "ejb\\:bean:a:EJB Beans:",
"-tag", "regular:a:Regular Tag:",
@@ -69,18 +67,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSimpleTagExclude/TestSimpleTagExclude.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSimpleTagExclude/TestSimpleTagExclude.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,12 +35,11 @@
public class TestSimpleTagExclude extends JavadocTester {
- private static final String BUG_ID = "4628181";
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/DummyClass.html", "todo"}
+ { "DummyClass.html", "todo"}
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-tag", "todo:X",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-tag", "todo:X",
SRC_DIR + "/DummyClass.java"
};
@@ -55,18 +54,4 @@
}
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSimpleTagInherit/TestSimpleTagInherit.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSimpleTagInherit/TestSimpleTagInherit.java Tue Apr 22 17:57:40 2014 -0700
@@ -32,10 +32,6 @@
public class TestSimpleTagInherit extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8008768";
- private static final String OUTPUT_DIR = BUG_ID;
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
@@ -45,10 +41,10 @@
//Input for string search tests.
private static final String[][] TEST = {
- { BUG_ID + "/p/TestClass.html",
+ { "p/TestClass.html",
"<dt><span class=\"simpleTagLabel\"><em>Custom:</em></span></dt>\n" +
"<dd>doc for BaseClass class</dd>" },
- { BUG_ID + "/p/TestClass.html",
+ { "p/TestClass.html",
"<dt><span class=\"simpleTagLabel\"><em>Custom:</em></span></dt>\n" +
"<dd>doc for BaseClass method</dd>" }
};
@@ -62,18 +58,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSinceTag/TestSinceTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSinceTag/TestSinceTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,26 +33,23 @@
public class TestSinceTag extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "7180906";
-
//Javadoc arguments.
private static final String[] ARGS1 = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"
};
private static final String[] ARGS2 = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-nosince", "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-nosince", "pkg1"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg1/C1.html",
+ { "pkg1/C1.html",
"<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n" +
"<dd>JDK1.0</dd>"
},
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<dl>\n" +
"<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n" +
"<dd>1.4</dd>"
@@ -69,18 +66,4 @@
tester.run(ARGS2, NO_TEST, TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSingleQuotedLink/TestSingleQuotedLink.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSingleQuotedLink/TestSingleQuotedLink.java Tue Apr 22 17:57:40 2014 -0700
@@ -32,21 +32,20 @@
*/
public class TestSingleQuotedLink extends JavadocTester {
- private static final String BUG_ID = "6457406";
// We are testing the redirection algorithm with a known scenario when a writer is not forced to ignore it: "-use".
private static final String[][] TEST = {
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"<a href=\'http://download.oracle.com/javase/8/docs/technotes/guides/indexC2.html\'>"
}
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg1/class-use/C1.html",
+ { "pkg1/class-use/C1.html",
"pkg1/\'http://download.oracle.com/javase/8/docs/technotes/guides/indexC2.html\'>"
}
};
private static final String[] ARGS =
new String[]{
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "pkg1"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-use", "pkg1"
};
/**
@@ -58,18 +57,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSourceTab/TestSourceTab.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSourceTab/TestSourceTab.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,10 +37,9 @@
public class TestSourceTab extends JavadocTester {
- private static final String BUG_ID = "4510979";
private static final String TMP_SRC_DIR = "tmpSrc";
- private static final String OUTPUT_DIR1 = BUG_ID + "-tabLengthEight";
- private static final String OUTPUT_DIR2 = BUG_ID + "-tabLengthFour";
+ private static final String OUTPUT_DIR1 = OUTPUT_DIR + "-tabLengthEight";
+ private static final String OUTPUT_DIR2 = OUTPUT_DIR + "-tabLengthFour";
//Run Javadoc on a source file with that is indented with a single tab per line
private static final String[] ARGS1 =
@@ -59,14 +58,9 @@
};
//Files to diff
- private static final String[][] FILES_TO_DIFF = {
- {OUTPUT_DIR1 + "/src-html/C.html",
- OUTPUT_DIR2 + "/src-html/C.html"
- },
- {OUTPUT_DIR1 + "/C.html",
- OUTPUT_DIR2 + "/C.html"
- }
-
+ private static final String[] FILES_TO_DIFF = {
+ "src-html/C.html",
+ "C.html"
};
/**
@@ -77,7 +71,7 @@
TestSourceTab tester = new TestSourceTab();
tester.run(ARGS1, NO_TEST, NO_TEST);
tester.run(ARGS2, NO_TEST, NO_TEST);
- tester.runDiffs(FILES_TO_DIFF);
+ tester.runDiffs(OUTPUT_DIR1, OUTPUT_DIR2, FILES_TO_DIFF);
}
TestSourceTab() throws IOException {
@@ -119,18 +113,4 @@
out.close();
}
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testStylesheet/TestStylesheet.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testStylesheet/TestStylesheet.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,31 +33,28 @@
public class TestStylesheet extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4494033-7028815-7052425-8007338";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"/* Javadoc style sheet */"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"/*\n" +
"Overall document style\n" +
"*/"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"/*\n" +
"Heading styles\n" +
"*/"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"/*\n" +
"Navigation bar styles\n" +
"*/"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"body {\n" +
" background-color:#ffffff;\n" +
" color:#353833;\n" +
@@ -65,11 +62,11 @@
" font-size:14px;\n" +
" margin:0;\n" +
"}"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"ul {\n" +
" list-style-type:disc;\n" +
"}"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
".overviewSummary caption, .memberSummary caption, .typeSummary caption,\n" +
".useSummary caption, .constantsSummary caption, .deprecatedSummary caption {\n" +
" position:relative;\n" +
@@ -85,7 +82,7 @@
" margin:0px;\n" +
" white-space:pre;\n" +
"}"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
".overviewSummary caption span, .memberSummary caption span, .typeSummary caption span,\n" +
".useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span {\n" +
" white-space:nowrap;\n" +
@@ -99,7 +96,7 @@
" border: none;\n" +
" height:16px;\n" +
"}"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
".memberSummary caption span.activeTableTab span {\n" +
" white-space:nowrap;\n" +
" padding-top:5px;\n" +
@@ -111,7 +108,7 @@
" background-color:#F8981D;\n" +
" height:16px;\n" +
"}"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
".memberSummary caption span.tableTab span {\n" +
" white-space:nowrap;\n" +
" padding-top:5px;\n" +
@@ -123,7 +120,7 @@
" background-color:#4D7A97;\n" +
" height:16px;\n" +
"}"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
".memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab {\n" +
" padding-top:0px;\n" +
" padding-left:0px;\n" +
@@ -132,16 +129,16 @@
" float:none;\n" +
" display:inline;\n" +
"}"},
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"@import url('resources/fonts/dejavu.css');"},
// Test whether a link to the stylesheet file is inserted properly
// in the class documentation.
- {BUG_ID + "/pkg/A.html",
+ { "pkg/A.html",
"<link rel=\"stylesheet\" type=\"text/css\" " +
"href=\"../stylesheet.css\" title=\"Style\">"}
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/stylesheet.css",
+ { "stylesheet.css",
"* {\n" +
" margin:0;\n" +
" padding:0;\n" +
@@ -157,18 +154,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSubTitle/TestSubTitle.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSubTitle/TestSubTitle.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,28 +34,27 @@
public class TestSubTitle extends JavadocTester {
- private static final String BUG_ID = "7010342";
private static final String[][] TEST = {
- {BUG_ID + "/pkg/package-summary.html",
+ { "pkg/package-summary.html",
"<div class=\"block\">This is the description of package pkg.</div>"
},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<div class=\"subTitle\">pkg</div>"
}
};
private static final String[][] NEG_TEST = {
- {BUG_ID + "/pkg/package-summary.html",
+ { "pkg/package-summary.html",
"<p class=\"subTitle\">\n" +
"<div class=\"block\">This is the " +
"description of package pkg.</div>\n" +
"</p>"
},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<p class=\"subTitle\">pkg</p>"
}
};
private static final String[] ARGS = new String[]{
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
/**
@@ -67,18 +66,4 @@
tester.run(ARGS, TEST, NEG_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSummaryHeading/TestSummaryHeading.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSummaryHeading/TestSummaryHeading.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,17 +36,14 @@
public class TestSummaryHeading extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4904036";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/C.html", "<h3>Method Summary</h3>"}
+ { "C.html", "<h3>Method Summary</h3>"}
};
/**
@@ -58,18 +55,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSuperclassInSerialForm/TestSuperClassInSerialForm.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSuperclassInSerialForm/TestSuperClassInSerialForm.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,15 +35,13 @@
public class TestSuperClassInSerialForm extends JavadocTester {
- private static final String BUG_ID = "4671694";
-
private static final String[][] TEST = {
- {BUG_ID + "/serialized-form.html",
+ { "serialized-form.html",
"<a href=\"pkg/SubClass.html\" title=\"class in pkg\">pkg.SubClass</a> extends <a href=\"pkg/SuperClass.html\" title=\"class in pkg\">SuperClass</a>"}
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
/**
@@ -55,18 +53,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testSupplementary/TestSupplementary.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testSupplementary/TestSupplementary.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,7 +37,6 @@
public class TestSupplementary extends JavadocTester {
- private static final String BUG_ID = "4914724";
private static final String[][] TEST = {
{WARNING_OUTPUT, "C.java:38: warning - Tag @see:illegal character: \"119040\" in \"C#method\ud834\udd00()"},
{WARNING_OUTPUT, "C.java:44: warning - illegal character \ud801 in @serialField tag: field\ud801\ud801 int."},
@@ -50,7 +49,7 @@
{WARNING_OUTPUT, "C.java:31: warning - illegal character"},
};
private static final String[] ARGS = new String[] {
- "-locale", "en_US", "-d", BUG_ID, SRC_DIR + "/C.java"
+ "-locale", "en_US", "-d", OUTPUT_DIR, SRC_DIR + "/C.java"
};
/**
@@ -67,18 +66,4 @@
Locale.setDefault(saveLocale);
}
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testTagHolderMethod/TestTagHolderMethod.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTagHolderMethod/TestTagHolderMethod.java Tue Apr 22 17:57:40 2014 -0700
@@ -21,8 +21,6 @@
* questions.
*/
-import com.sun.javadoc.*;
-
/*
* @test
* @bug 4706525
@@ -34,9 +32,10 @@
* @run main TestTagHolderMethod
*/
+import com.sun.javadoc.*;
+
public class TestTagHolderMethod extends JavadocTester {
- private static final String BUG_ID = "4706525";
public static final String[] ARGS = new String[] {
"-docletpath", SRC_DIR, "-doclet", "TestTagHolderMethod", "-sourcepath",
SRC_DIR, "pkg"};
@@ -77,18 +76,4 @@
JavadocTester tester = new TestTagHolderMethod();
tester.run(ARGS, new String[][]{}, new String[][]{});
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testTagInheritence/TestTagInheritence.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTagInheritence/TestTagInheritence.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,10 +34,8 @@
public class TestTagInheritence extends JavadocTester {
- private static final String BUG_ID =
- "4496223-4496270-4618686-4720974-4812240-6253614-6253604";
private static final String[] ARGS = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg",
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg",
"firstSentence", "firstSentence2"
};
@@ -54,36 +52,20 @@
//Test valid usage of inheritDoc tag.
for (int i = 1; i < tests.length-2; i++) {
- tests[i][0] = BUG_ID + "/pkg/TestTagInheritence.html";
+ tests[i][0] = "pkg/TestTagInheritence.html";
tests[i][1] = "Test " + i + " passes";
}
//First sentence test (6253614)
- tests[tests.length - 2][0] =BUG_ID + "/firstSentence/" +
- "B.html";
+ tests[tests.length - 2][0] = "firstSentence/B.html";
tests[tests.length - 2][1] = "<div class=\"block\">First sentence.</div>";
//Another first sentence test (6253604)
- tests[tests.length - 1][0] =BUG_ID + "/firstSentence2/" +
- "C.html";
+ tests[tests.length - 1][0] = "firstSentence2/C.html";
tests[tests.length - 1][1] = "<div class=\"block\">First sentence.</div>";
TestTagInheritence tester = new TestTagInheritence();
tester.run(ARGS, tests, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testTagMisuse/TestTagMisuse.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTagMisuse/TestTagMisuse.java Tue Apr 22 17:57:40 2014 -0700
@@ -32,7 +32,6 @@
*/
public class TestTagMisuse extends JavadocTester {
- private static final String BUG_ID = "no-bug-id";
private static final String[][] TEST = {
{WARNING_OUTPUT, "warning - Tag @param cannot be used in field documentation."},
{WARNING_OUTPUT, "warning - Tag @throws cannot be used in field documentation."},
@@ -40,7 +39,7 @@
{WARNING_OUTPUT, "warning - Tag @throws cannot be used in inline documentation."},
};
private static final String[] ARGS = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, SRC_DIR + "/TestTagMisuse.java"
+ "-Xdoclint:none", "-d", OUTPUT_DIR, SRC_DIR + "/TestTagMisuse.java"
};
/**
@@ -54,20 +53,6 @@
}
/**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
-
- /**
* {@throws blah}
* Here is a bad field tag:
* @throws foo
--- a/langtools/test/com/sun/javadoc/testTagOutput/TestTagOutput.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTagOutput/TestTagOutput.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,22 +35,21 @@
public class TestTagOutput extends JavadocTester {
- private static final String BUG_ID = "8026370";
private static final String[][] TEST = {
- {BUG_ID + "/pkg1/DeprecatedTag.html",
+ { "pkg1/DeprecatedTag.html",
"<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> </div>"},
- {BUG_ID + "/pkg1/DeprecatedTag.html",
+ { "pkg1/DeprecatedTag.html",
"<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> " +
"<span class=\"deprecationComment\">Do not use this.</span></div>"}};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg1/DeprecatedTag.html",
+ { "pkg1/DeprecatedTag.html",
"<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated." +
"</span> <span class=\"deprecationComment\"></span></div>"}};
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1"};
/**
* The entry point of the test.
@@ -61,18 +60,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testTaglets/TestTaglets.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTaglets/TestTaglets.java Tue Apr 22 17:57:40 2014 -0700
@@ -38,10 +38,6 @@
public class TestTaglets extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4654308-4767038";
- private static final String OUTPUT_DIR = BUG_ID;
-
//Javadoc arguments.
private static final String[] ARGS_4654308 = new String[] {
"-d", "4654308", "-tagletpath", SRC_DIR, "-taglet", "taglets.Foo",
@@ -55,13 +51,13 @@
//Input for string search tests.
private static final String[][] TEST_4654308 = new String[][] {
- {"4654308/C.html", "<span class=\"simpleTagLabel\">Foo:</span></dt>" +
+ { "C.html", "<span class=\"simpleTagLabel\">Foo:</span></dt>" +
"<dd>my only method is <a href=\"C.html#method--\"><code>here" +
"</code></a></dd></dl>"}
};
private static final String[][] TEST_4767038 = new String[][] {
- {"4767038/Child.html",
+ { "Child.html",
"This is the first sentence."}
};
@@ -78,18 +74,4 @@
tester.run(ARGS_4767038, TEST_4767038, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testThrowsHead/TestThrowsHead.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testThrowsHead/TestThrowsHead.java Tue Apr 22 17:57:40 2014 -0700
@@ -21,7 +21,7 @@
* questions.
*/
-/**
+/*
* @test
* @bug 4530727 8026567
* @summary When an exception is declared in the method signature but
@@ -36,12 +36,11 @@
public class TestThrowsHead extends JavadocTester {
- private static final String BUG_ID = "4530727";
private static final String[][] TEST = {
- {BUG_ID + "/C.html", "<dt><span class=\"throwsLabel\">Throws:</span>"}
+ { "C.html", "<dt><span class=\"throwsLabel\">Throws:</span>"}
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, SRC_DIR + "/C.java"
+ "-d", OUTPUT_DIR, SRC_DIR + "/C.java"
};
/**
@@ -53,18 +52,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testThrowsInheritence/TestThrowsTagInheritence.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testThrowsInheritence/TestThrowsTagInheritence.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,18 +36,17 @@
public class TestThrowsTagInheritence extends JavadocTester {
- private static final String BUG_ID = "4684827-4633969";
private static final String[][] TEST = {
//The class should not inherit the tag from the interface.
- {BUG_ID + "/Foo.html", "Test 1 passes."}
+ { "Foo.html", "Test 1 passes."}
};
private static final String[][] NEGATED_TEST = {
//The class should not inherit the tag from the interface.
- {BUG_ID + "/C.html", "Test 1 fails."}
+ { "C.html", "Test 1 fails."}
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java",
SRC_DIR + "/I.java", SRC_DIR + "/Foo.java",
SRC_DIR + "/Iface.java"
};
@@ -61,18 +60,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testThrowsTag/TestThrowsTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testThrowsTag/TestThrowsTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,17 +35,14 @@
public class TestThrowsTag extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4985072";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<dd><code><a href=\"../pkg/T1.html\" title=\"class in pkg\">T1</a></code> - the first throws tag.</dd>\n" +
"<dd><code><a href=\"../pkg/T2.html\" title=\"class in pkg\">T2</a></code> - the second throws tag.</dd>\n" +
"<dd><code><a href=\"../pkg/T3.html\" title=\"class in pkg\">T3</a></code> - the third throws tag.</dd>\n" +
@@ -66,18 +63,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testTitleInHref/TestTitleInHref.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTitleInHref/TestTitleInHref.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,25 +34,23 @@
public class TestTitleInHref extends JavadocTester {
- private static final String BUG_ID = "4714257";
-
private static final String[][] TEST = {
//Test to make sure that the title shows up in a class link.
- {BUG_ID + "/pkg/Links.html",
+ { "pkg/Links.html",
"<a href=\"../pkg/Class.html\" title=\"class in pkg\">"},
//Test to make sure that the title shows up in an interface link.
- {BUG_ID + "/pkg/Links.html",
+ { "pkg/Links.html",
"<a href=\"../pkg/Interface.html\" title=\"interface in pkg\">"},
//Test to make sure that the title shows up in cross link shows up
- {BUG_ID + "/pkg/Links.html",
+ { "pkg/Links.html",
"<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" title=\"class or interface in java.io\"><code>This is a cross link to class File</code></a>"},
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
"-linkoffline", "http://java.sun.com/j2se/1.4/docs/api",
SRC_DIR, "pkg"
};
@@ -66,18 +64,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testTopOption/TestTopOption.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTopOption/TestTopOption.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,40 +34,37 @@
public class TestTopOption extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "6227616";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
"-overview", "SRC_DIR + '/' + overview.html", "-use", "-top",
- "TOP TEXT", "-d", BUG_ID, "-sourcepath",
+ "TOP TEXT", "-d", OUTPUT_DIR, "-sourcepath",
SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/AnnotationType.html",
+ { "pkg/AnnotationType.html",
"TOP TEXT"},
- {BUG_ID + "/pkg/class-use/AnnotationType.html",
+ { "pkg/class-use/AnnotationType.html",
"TOP TEXT"},
- {BUG_ID + "/pkg/Cl.html",
+ { "pkg/Cl.html",
"TOP TEXT"},
- {BUG_ID + "/pkg/class-use/Cl.html",
+ { "pkg/class-use/Cl.html",
"TOP TEXT"},
- {BUG_ID + "/pkg/package-summary.html",
+ { "pkg/package-summary.html",
"TOP TEXT"},
- {BUG_ID + "/pkg/package-use.html",
+ { "pkg/package-use.html",
"TOP TEXT"},
- {BUG_ID + "/overview-summary.html",
+ { "overview-summary.html",
"TOP TEXT"},
- {BUG_ID + "/overview-tree.html",
+ { "overview-tree.html",
"TOP TEXT"},
- {BUG_ID + "/constant-values.html",
+ { "constant-values.html",
"TOP TEXT"},
- {BUG_ID + "/help-doc.html",
+ { "help-doc.html",
"TOP TEXT"},
};
@@ -80,18 +77,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testTypeAnnotations/TestTypeAnnotations.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTypeAnnotations/TestTypeAnnotations.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,25 +34,22 @@
public class TestTypeAnnotations extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8005091-8009686";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-private", "typeannos"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-private", "typeannos"
};
//Input for string search tests.
private static final String[][] TEST = {
// Test for type annotations on Class Extends (ClassExtends.java).
- {BUG_ID + "/typeannos/MyClass.html",
+ { "typeannos/MyClass.html",
"extends <a href=\"../typeannos/ClassExtA.html\" title=\"annotation " +
"in typeannos\">@ClassExtA</a> <a href=\"../typeannos/ParameterizedClass.html\" " +
"title=\"class in typeannos\">ParameterizedClass</a><<a href=\"" +
"../typeannos/ClassExtB.html\" title=\"annotation in typeannos\">" +
"@ClassExtB</a> java.lang.String>"
},
- {BUG_ID + "/typeannos/MyClass.html",
+ { "typeannos/MyClass.html",
"implements <a href=\"../typeannos/ClassExtB.html\" title=\"" +
"annotation in typeannos\">@ClassExtB</a> java.lang.CharSequence, " +
"<a href=\"../typeannos/ClassExtA.html\" title=\"annotation in " +
@@ -61,7 +58,7 @@
"<a href=\"../typeannos/ClassExtB.html\" title=\"annotation in " +
"typeannos\">@ClassExtB</a> java.lang.String></pre>"
},
- {BUG_ID + "/typeannos/MyInterface.html",
+ { "typeannos/MyInterface.html",
"extends <a href=\"../typeannos/ClassExtA.html\" title=\"annotation " +
"in typeannos\">@ClassExtA</a> <a href=\"../typeannos/" +
"ParameterizedInterface.html\" title=\"interface in typeannos\">" +
@@ -72,12 +69,12 @@
},
// Test for type annotations on Class Parameters (ClassParameters.java).
- {BUG_ID + "/typeannos/ExtendsBound.html",
+ { "typeannos/ExtendsBound.html",
"class <span class=\"typeNameLabel\">ExtendsBound<K extends <a " +
"href=\"../typeannos/ClassParamA.html\" title=\"annotation in " +
"typeannos\">@ClassParamA</a> java.lang.String></span>"
},
- {BUG_ID + "/typeannos/ExtendsGeneric.html",
+ { "typeannos/ExtendsGeneric.html",
"<pre>class <span class=\"typeNameLabel\">ExtendsGeneric<K extends " +
"<a href=\"../typeannos/ClassParamA.html\" title=\"annotation in " +
"typeannos\">@ClassParamA</a> <a href=\"../typeannos/Unannotated.html\" " +
@@ -85,24 +82,24 @@
"../typeannos/ClassParamB.html\" title=\"annotation in typeannos\">" +
"@ClassParamB</a> java.lang.String>></span>"
},
- {BUG_ID + "/typeannos/TwoBounds.html",
+ { "typeannos/TwoBounds.html",
"<pre>class <span class=\"typeNameLabel\">TwoBounds<K extends <a href=\"" +
"../typeannos/ClassParamA.html\" title=\"annotation in typeannos\">" +
"@ClassParamA</a> java.lang.String,V extends <a href=\"../typeannos/" +
"ClassParamB.html\" title=\"annotation in typeannos\">@ClassParamB" +
"</a> java.lang.String></span>"
},
- {BUG_ID + "/typeannos/Complex1.html",
+ { "typeannos/Complex1.html",
"class <span class=\"typeNameLabel\">Complex1<K extends <a href=\"../" +
"typeannos/ClassParamA.html\" title=\"annotation in typeannos\">" +
"@ClassParamA</a> java.lang.String & java.lang.Runnable></span>"
},
- {BUG_ID + "/typeannos/Complex2.html",
+ { "typeannos/Complex2.html",
"class <span class=\"typeNameLabel\">Complex2<K extends java.lang." +
"String & <a href=\"../typeannos/ClassParamB.html\" title=\"" +
"annotation in typeannos\">@ClassParamB</a> java.lang.Runnable></span>"
},
- {BUG_ID + "/typeannos/ComplexBoth.html",
+ { "typeannos/ComplexBoth.html",
"class <span class=\"typeNameLabel\">ComplexBoth<K extends <a href=\"" +
"../typeannos/ClassParamA.html\" title=\"annotation in typeannos\"" +
">@ClassParamA</a> java.lang.String & <a href=\"../typeannos/" +
@@ -111,24 +108,24 @@
},
// Test for type annotations on fields (Fields.java).
- {BUG_ID + "/typeannos/DefaultScope.html",
+ { "typeannos/DefaultScope.html",
"<pre><a href=\"../typeannos/Parameterized.html\" title=\"class in " +
"typeannos\">Parameterized</a><<a href=\"../typeannos/FldA.html\" " +
"title=\"annotation in typeannos\">@FldA</a> java.lang.String,<a " +
"href=\"../typeannos/FldB.html\" title=\"annotation in typeannos\">" +
"@FldB</a> java.lang.String> bothTypeArgs</pre>"
},
- {BUG_ID + "/typeannos/DefaultScope.html",
+ { "typeannos/DefaultScope.html",
"<pre><a href=\"../typeannos/FldA.html\" title=\"annotation in " +
"typeannos\">@FldA</a> java.lang.String <a href=\"../typeannos/" +
"FldB.html\" title=\"annotation in typeannos\">@FldB</a> [] " +
"array1Deep</pre>"
},
- {BUG_ID + "/typeannos/DefaultScope.html",
+ { "typeannos/DefaultScope.html",
"<pre>java.lang.String[] <a href=\"../typeannos/FldB.html\" " +
"title=\"annotation in typeannos\">@FldB</a> [] array2SecondOld</pre>"
},
- {BUG_ID + "/typeannos/DefaultScope.html",
+ { "typeannos/DefaultScope.html",
"<pre><a href=\"../typeannos/FldD.html\" title=\"annotation in " +
"typeannos\">@FldD</a> java.lang.String <a href=\"../typeannos/" +
"FldC.html\" title=\"annotation in typeannos\">@FldC</a> <a href=\"" +
@@ -137,7 +134,7 @@
"typeannos\">@FldC</a> <a href=\"../typeannos/FldB.html\" title=\"" +
"annotation in typeannos\">@FldB</a> [] array2Deep</pre>"
},
- {BUG_ID + "/typeannos/ModifiedScoped.html",
+ { "typeannos/ModifiedScoped.html",
"<pre>public final <a href=\"../typeannos/Parameterized.html\" " +
"title=\"class in typeannos\">Parameterized</a><<a href=\"../" +
"typeannos/FldA.html\" title=\"annotation in typeannos\">@FldA</a> " +
@@ -149,30 +146,30 @@
"title=\"annotation in typeannos\">@FldB</a> java.lang.String> " +
"nestedParameterized</pre>"
},
- {BUG_ID + "/typeannos/ModifiedScoped.html",
+ { "typeannos/ModifiedScoped.html",
"<pre>public final <a href=\"../typeannos/FldA.html\" " +
"title=\"annotation in typeannos\">@FldA</a> java.lang.String[][] " +
"array2</pre>"
},
// Test for type annotations on method return types (MethodReturnType.java).
- {BUG_ID + "/typeannos/MtdDefaultScope.html",
+ { "typeannos/MtdDefaultScope.html",
"<pre>public <T> <a href=\"../typeannos/MRtnA.html\" " +
"title=\"annotation in typeannos\">@MRtnA</a> java.lang.String" +
" method()</pre>"
},
- {BUG_ID + "/typeannos/MtdDefaultScope.html",
+ { "typeannos/MtdDefaultScope.html",
"<pre><a href=\"../typeannos/MRtnA.html\" title=\"annotation in " +
"typeannos\">@MRtnA</a> java.lang.String <a href=\"../typeannos/" +
"MRtnA.html\" title=\"annotation in typeannos\">@MRtnA</a> [] <a " +
"href=\"../typeannos/MRtnB.html\" title=\"annotation in typeannos\">" +
"@MRtnB</a> [] array2Deep()</pre>"
},
- {BUG_ID + "/typeannos/MtdDefaultScope.html",
+ { "typeannos/MtdDefaultScope.html",
"<pre><a href=\"../typeannos/MRtnA.html\" title=\"annotation in " +
"typeannos\">@MRtnA</a> java.lang.String[][] array2()</pre>"
},
- {BUG_ID + "/typeannos/MtdModifiedScoped.html",
+ { "typeannos/MtdModifiedScoped.html",
"<pre>public final <a href=\"../typeannos/MtdParameterized.html\" " +
"title=\"class in typeannos\">MtdParameterized</a><<a href=\"../" +
"typeannos/MRtnA.html\" title=\"annotation in typeannos\">@MRtnA</a> " +
@@ -186,12 +183,12 @@
},
// Test for type annotations on method type parameters (MethodTypeParameters.java).
- {BUG_ID + "/typeannos/UnscopedUnmodified.html",
+ { "typeannos/UnscopedUnmodified.html",
"<pre><K extends <a href=\"../typeannos/MTyParamA.html\" title=\"" +
"annotation in typeannos\">@MTyParamA</a> java.lang.String>" +
" void methodExtends()</pre>"
},
- {BUG_ID + "/typeannos/UnscopedUnmodified.html",
+ { "typeannos/UnscopedUnmodified.html",
"<pre><K extends <a href=\"../typeannos/MTyParamA.html\" title=\"" +
"annotation in typeannos\">@MTyParamA</a> <a href=\"../typeannos/" +
"MtdTyParameterized.html\" title=\"class in typeannos\">" +
@@ -199,12 +196,12 @@
"title=\"annotation in typeannos\">@MTyParamB</a> java.lang.String" +
">> void nestedExtends()</pre>"
},
- {BUG_ID + "/typeannos/PublicModifiedMethods.html",
+ { "typeannos/PublicModifiedMethods.html",
"<pre>public final <K extends <a href=\"../typeannos/" +
"MTyParamA.html\" title=\"annotation in typeannos\">@MTyParamA</a> " +
"java.lang.String> void methodExtends()</pre>"
},
- {BUG_ID + "/typeannos/PublicModifiedMethods.html",
+ { "typeannos/PublicModifiedMethods.html",
"<pre>public final <K extends <a href=\"../typeannos/" +
"MTyParamA.html\" title=\"annotation in typeannos\">@MTyParamA</a> " +
"java.lang.String,V extends <a href=\"../typeannos/MTyParamA.html\" " +
@@ -216,13 +213,13 @@
},
// Test for type annotations on parameters (Parameters.java).
- {BUG_ID + "/typeannos/Parameters.html",
+ { "typeannos/Parameters.html",
"<pre>void unannotated(<a href=\"../typeannos/" +
"ParaParameterized.html\" title=\"class in typeannos\">" +
"ParaParameterized</a><java.lang.String,java.lang.String>" +
" a)</pre>"
},
- {BUG_ID + "/typeannos/Parameters.html",
+ { "typeannos/Parameters.html",
"<pre>void nestedParaParameterized(<a href=\"../typeannos/" +
"ParaParameterized.html\" title=\"class in typeannos\">" +
"ParaParameterized</a><<a href=\"../typeannos/ParamA.html\" " +
@@ -235,7 +232,7 @@
"typeannos/ParamB.html\" title=\"annotation in typeannos\">@ParamB" +
"</a> java.lang.String> a)</pre>"
},
- {BUG_ID + "/typeannos/Parameters.html",
+ { "typeannos/Parameters.html",
"<pre>void array2Deep(<a href=\"../typeannos/ParamA.html\" " +
"title=\"annotation in typeannos\">@ParamA</a> java.lang.String " +
"<a href=\"../typeannos/ParamA.html\" title=\"annotation in " +
@@ -244,37 +241,37 @@
},
// Test for type annotations on throws (Throws.java).
- {BUG_ID + "/typeannos/ThrDefaultUnmodified.html",
+ { "typeannos/ThrDefaultUnmodified.html",
"<pre>void oneException()\n" +
" throws <a href=\"../typeannos/ThrA.html\" title=\"" +
"annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/ThrDefaultUnmodified.html",
+ { "typeannos/ThrDefaultUnmodified.html",
"<pre>void twoExceptions()\n" +
" throws <a href=\"../typeannos/ThrA.html\" title=\"" +
"annotation in typeannos\">@ThrA</a> java.lang.RuntimeException,\n" +
" <a href=\"../typeannos/ThrA.html\" title=\"" +
"annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/ThrPublicModified.html",
+ { "typeannos/ThrPublicModified.html",
"<pre>public final void oneException(java.lang.String a)\n" +
" throws <a href=\"../typeannos/ThrA.html\" " +
"title=\"annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/ThrPublicModified.html",
+ { "typeannos/ThrPublicModified.html",
"<pre>public final void twoExceptions(java.lang.String a)\n" +
" throws <a href=\"../typeannos/ThrA.html\" " +
"title=\"annotation in typeannos\">@ThrA</a> java.lang.RuntimeException,\n" +
" <a href=\"../typeannos/ThrA.html\" " +
"title=\"annotation in typeannos\">@ThrA</a> java.lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/ThrWithValue.html",
+ { "typeannos/ThrWithValue.html",
"<pre>void oneException()\n" +
" throws <a href=\"../typeannos/ThrB.html\" title=\"" +
"annotation in typeannos\">@ThrB</a>(<a href=\"../typeannos/" +
"ThrB.html#value--\">value</a>=\"m\") java.lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/ThrWithValue.html",
+ { "typeannos/ThrWithValue.html",
"<pre>void twoExceptions()\n" +
" throws <a href=\"../typeannos/ThrB.html\" title=\"" +
"annotation in typeannos\">@ThrB</a>(<a href=\"../typeannos/" +
@@ -284,33 +281,33 @@
},
// Test for type annotations on type parameters (TypeParameters.java).
- {BUG_ID + "/typeannos/TestMethods.html",
+ { "typeannos/TestMethods.html",
"<pre><K,V extends <a href=\"../typeannos/TyParaA.html\" title=\"" +
"annotation in typeannos\">@TyParaA</a> java.lang.String> " +
"void secondAnnotated()</pre>"
},
// Test for type annotations on wildcard type (Wildcards.java).
- {BUG_ID + "/typeannos/BoundTest.html",
+ { "typeannos/BoundTest.html",
"<pre>void wcExtends(<a href=\"../typeannos/MyList.html\" " +
"title=\"class in typeannos\">MyList</a><? extends <a href=\"" +
"../typeannos/WldA.html\" title=\"annotation in typeannos\">@WldA" +
"</a> java.lang.String> l)</pre>"
},
- {BUG_ID + "/typeannos/BoundTest.html",
+ { "typeannos/BoundTest.html",
"<pre><a href=\"../typeannos/MyList.html\" title=\"class in " +
"typeannos\">MyList</a><? super <a href=\"../typeannos/WldA.html\" " +
"title=\"annotation in typeannos\">@WldA</a> java.lang.String>" +
" returnWcSuper()</pre>"
},
- {BUG_ID + "/typeannos/BoundWithValue.html",
+ { "typeannos/BoundWithValue.html",
"<pre>void wcSuper(<a href=\"../typeannos/MyList.html\" title=\"" +
"class in typeannos\">MyList</a><? super <a href=\"../typeannos/" +
"WldB.html\" title=\"annotation in typeannos\">@WldB</a>(<a href=\"" +
"../typeannos/WldB.html#value--\">value</a>=\"m\") java.lang." +
"String> l)</pre>"
},
- {BUG_ID + "/typeannos/BoundWithValue.html",
+ { "typeannos/BoundWithValue.html",
"<pre><a href=\"../typeannos/MyList.html\" title=\"class in " +
"typeannos\">MyList</a><? extends <a href=\"../typeannos/WldB." +
"html\" title=\"annotation in typeannos\">@WldB</a>(<a href=\"../" +
@@ -319,40 +316,40 @@
},
// Test for receiver annotations (Receivers.java).
- {BUG_ID + "/typeannos/DefaultUnmodified.html",
+ { "typeannos/DefaultUnmodified.html",
"<pre>void withException(<a href=\"../typeannos/RcvrA.html\" " +
"title=\"annotation in typeannos\">@RcvrA</a> " +
"DefaultUnmodified this)\n" +
" throws java." +
"lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/DefaultUnmodified.html",
+ { "typeannos/DefaultUnmodified.html",
"<pre>java.lang.String nonVoid(<a href=\"../typeannos/RcvrA." +
"html\" title=\"annotation in typeannos\">@RcvrA</a> <a href=\"../" +
"typeannos/RcvrB.html\" title=\"annotation in typeannos\">@RcvrB" +
"</a>(<a href=\"../typeannos/RcvrB.html#value--\">value</a>=\"m\")" +
" DefaultUnmodified this)</pre>"
},
- {BUG_ID + "/typeannos/DefaultUnmodified.html",
+ { "typeannos/DefaultUnmodified.html",
"<pre><T extends java.lang.Runnable> void accept(" +
"<a href=\"../typeannos/RcvrA.html\" title=\"annotation in " +
"typeannos\">@RcvrA</a> DefaultUnmodified this,\n" +
" T r)\n" +
" throws java.lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/PublicModified.html",
+ { "typeannos/PublicModified.html",
"<pre>public final java.lang.String nonVoid(<a href=\"" +
"../typeannos/RcvrA.html\" title=\"annotation in typeannos\">" +
"@RcvrA</a> PublicModified this)</pre>"
},
- {BUG_ID + "/typeannos/PublicModified.html",
+ { "typeannos/PublicModified.html",
"<pre>public final <T extends java.lang.Runnable> " +
"void accept(<a href=\"../typeannos/RcvrA.html\" title=\"" +
"annotation in typeannos\">@RcvrA</a> PublicModified this,\n" +
" T r)\n" +
" throws java.lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/WithValue.html",
+ { "typeannos/WithValue.html",
"<pre><T extends java.lang.Runnable> void accept(" +
"<a href=\"../typeannos/RcvrB.html\" title=\"annotation in " +
"typeannos\">@RcvrB</a>(<a href=\"../typeannos/RcvrB.html#value--\">" +
@@ -360,17 +357,17 @@
" T r)\n" +
" throws java.lang.Exception</pre>"
},
- {BUG_ID + "/typeannos/WithFinal.html",
+ { "typeannos/WithFinal.html",
"<pre>java.lang.String nonVoid(<a href=\"../typeannos/RcvrB." +
"html\" title=\"annotation in typeannos\">@RcvrB</a>(<a href=\"../" +
"typeannos/RcvrB.html#value--\">value</a>=\"m\") WithFinal" +
" this)</pre>"
},
- {BUG_ID + "/typeannos/WithBody.html",
+ { "typeannos/WithBody.html",
"<pre>void field(<a href=\"../typeannos/RcvrA.html\" title=\"" +
"annotation in typeannos\">@RcvrA</a> WithBody this)</pre>"
},
- {BUG_ID + "/typeannos/Generic2.html",
+ { "typeannos/Generic2.html",
"<pre>void test2(<a href=\"../typeannos/RcvrA.html\" title=\"" +
"annotation in typeannos\">@RcvrA</a> Generic2<X> this)</pre>"
}
@@ -385,18 +382,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testTypeParams/TestTypeParameters.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testTypeParams/TestTypeParameters.java Tue Apr 22 17:57:40 2014 -0700
@@ -37,47 +37,44 @@
public class TestTypeParameters extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4927167-4974929-7010344";
-
//Javadoc arguments.
private static final String[] ARGS1 = new String[]{
- "-d", BUG_ID, "-use", "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-use", "-sourcepath", SRC_DIR,
"pkg"
};
private static final String[] ARGS2 = new String[]{
- "-d", BUG_ID, "-linksource", "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-linksource", "-sourcepath", SRC_DIR,
"pkg"
};
//Input for string search tests.
private static final String[][] TEST1 = {
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<td class=\"colFirst\"><code><W extends java.lang.String,V extends " +
"java.util.List><br>java.lang.Object</code></td>"
},
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<code><T> java.lang.Object</code>"
},
- {BUG_ID + "/pkg/package-summary.html",
+ { "pkg/package-summary.html",
"C</a><E extends <a href=\"../pkg/Parent.html\" " +
"title=\"class in pkg\">Parent</a>>"
},
- {BUG_ID + "/pkg/class-use/Foo4.html",
+ { "pkg/class-use/Foo4.html",
"<a href=\"../../pkg/ClassUseTest3.html\" title=\"class in pkg\">" +
"ClassUseTest3</a><T extends <a href=\"../../pkg/ParamTest2.html\" " +
"title=\"class in pkg\">ParamTest2</a><java.util.List<? extends " +
"<a href=\"../../pkg/Foo4.html\" title=\"class in pkg\">Foo4</a>>>>"
},
//Nested type parameters
- {BUG_ID + "/pkg/C.html",
+ { "pkg/C.html",
"<a name=\"formatDetails-java.util.Collection-java.util.Collection-\">\n" +
"<!-- -->\n" +
"</a>"
},
};
private static final String[][] TEST2 = {
- {BUG_ID + "/pkg/ClassUseTest3.html",
+ { "pkg/ClassUseTest3.html",
"public class <a href=\"../src-html/pkg/ClassUseTest3.html#line.28\">" +
"ClassUseTest3</a><T extends <a href=\"../pkg/ParamTest2.html\" " +
"title=\"class in pkg\">ParamTest2</a><java.util.List<? extends " +
@@ -95,18 +92,4 @@
tester.run(ARGS2, TEST2, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testUnnamedPackage/TestUnnamedPackage.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testUnnamedPackage/TestUnnamedPackage.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,32 +35,29 @@
public class TestUnnamedPackage extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4904075-4774450-5015144";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/package-summary.html",
+ { "package-summary.html",
"<h1 title=\"Package\" class=\"title\">Package <Unnamed></h1>"
},
- {BUG_ID + "/package-summary.html",
+ { "package-summary.html",
"This is a package comment for the unnamed package."
},
- {BUG_ID + "/package-summary.html",
+ { "package-summary.html",
"This is a class in the unnamed package."
},
- {BUG_ID + "/package-tree.html",
+ { "package-tree.html",
"<h1 class=\"title\">Hierarchy For Package <Unnamed></h1>"
},
- {BUG_ID + "/index-all.html",
+ { "index-all.html",
"title=\"class in <Unnamed>\""
},
- {BUG_ID + "/C.html", "<a href=\"package-summary.html\">"}
+ { "C.html", "<a href=\"package-summary.html\">"}
};
private static final String[][] NEGATED_TEST = {
{ERROR_OUTPUT, "BadSource"},
@@ -75,18 +72,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testUseOption/TestUseOption.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testUseOption/TestUseOption.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,8 +34,6 @@
public class TestUseOption extends JavadocTester {
- private static final String BUG_ID = "4496290-4985072-7006178-7068595";
-
//Input for string search tests.
private static final String[] TEST2 = {
"Field in C1.",
@@ -55,37 +53,38 @@
};
private static final String[][] TEST3 = {
- {BUG_ID + "-3/class-use/UsedInC.html", "Uses of <a href=" +
- "\"../UsedInC.html\" title=\"class in <Unnamed>\">" +
- "UsedInC</a> in <a href=\"../package-summary.html\"><Unnamed></a>"
+ { "class-use/UsedInC.html",
+ "Uses of <a href=\"../UsedInC.html\" title=\"class in <Unnamed>\">" +
+ "UsedInC</a> in <a href=\"../package-summary.html\"><Unnamed></a>"
},
- {BUG_ID + "-3/package-use.html", "<td class=\"colOne\">" +
- "<a href=\"class-use/UsedInC.html#%3CUnnamed%3E\">UsedInC</a> </td>"
+ { "package-use.html",
+ "<td class=\"colOne\">" +
+ "<a href=\"class-use/UsedInC.html#%3CUnnamed%3E\">UsedInC</a> </td>"
}
};
private static final String[][] TEST4 = {
- {BUG_ID + "-4/pkg2/class-use/C3.html", "<a href=" +
- "\"../../index.html?pkg2/class-use/C3.html\" target=\"_top\">" +
- "Frames</a></li>"
+ { "pkg2/class-use/C3.html",
+ "<a href=\"../../index.html?pkg2/class-use/C3.html\" target=\"_top\">" +
+ "Frames</a></li>"
}
};
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
};
private static final String[] ARGS2 = new String[] {
- "-d", BUG_ID+"-2", "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
+ "-d", OUTPUT_DIR+"-2", "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
};
private static final String[] ARGS3 = new String[] {
- "-d", BUG_ID + "-3", "-sourcepath", SRC_DIR, "-use", SRC_DIR +
- "/C.java", SRC_DIR + "/UsedInC.java"
+ "-d", OUTPUT_DIR + "-3", "-sourcepath", SRC_DIR, "-use",
+ SRC_DIR + "/C.java", SRC_DIR + "/UsedInC.java"
};
private static final String[] ARGS4 = new String[] {
- "-d", BUG_ID + "-4", "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
+ "-d", OUTPUT_DIR + "-4", "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2"
};
/**
@@ -96,20 +95,19 @@
String[][] tests = new String[11][2];
//Eight tests for class use.
for (int i = 0; i < 8; i++) {
- tests[i][0] = BUG_ID + "/pkg1/class-use/C1.html";
+ tests[i][0] = "pkg1/class-use/C1.html";
tests[i][1] = "Test " + (i + 1) + " passes";
}
//Three more tests for package use.
for (int i = 8, j = 1; i < tests.length; i++, j++) {
- tests[i][0] = BUG_ID + "/pkg1/package-use.html";
+ tests[i][0] = "pkg1/package-use.html";
tests[i][1] = "Test " + j + " passes";
}
TestUseOption tester = new TestUseOption();
tester.run(ARGS, tests, NO_TEST);
tester.printSummary();
tester.run(ARGS2, NO_TEST, NO_TEST);
- String usePageContents = tester.readFileToString(BUG_ID +
- "-2/pkg1/class-use/UsedClass.html");
+ String usePageContents = tester.readFileToString("pkg1/class-use/UsedClass.html");
int prevIndex = -1;
int currentIndex = -1;
for (int i = 0; i < TEST2.length; i++) {
@@ -124,18 +122,4 @@
tester.run(ARGS4, TEST4, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testValueTag/TestValueTag.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testValueTag/TestValueTag.java Tue Apr 22 17:57:40 2014 -0700
@@ -34,66 +34,63 @@
public class TestValueTag extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4764045";
-
//Javadoc arguments.
private static final String[] ARGS =
new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-tag",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-tag",
"todo", "pkg1", "pkg2"
};
private static final String[] ARGS1 =
new String[] {
"-Xdoclint:none",
- "-d", BUG_ID + "-1", "-sourcepath", SRC_DIR, "-tag",
+ "-d", OUTPUT_DIR + "-1", "-sourcepath", SRC_DIR, "-tag",
"todo", "pkg1", "pkg2"
};
//Input for string search tests.
private static final String[][] TEST = {
//Base case: using @value on a constant.
- {BUG_ID + "/pkg1/Class1.html",
+ { "pkg1/Class1.html",
"Result: \"Test 1 passes\""},
//Retrieve value of constant in same class.
- {BUG_ID + "/pkg1/Class1.html",
+ { "pkg1/Class1.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_2_PASSES\">\"Test 2 passes\"</a>"},
- {BUG_ID + "/pkg1/Class1.html",
+ { "pkg1/Class1.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_3_PASSES\">\"Test 3 passes\"</a>"},
- {BUG_ID + "/pkg1/Class1.html",
+ { "pkg1/Class1.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_4_PASSES\">\"Test 4 passes\"</a>"},
- {BUG_ID + "/pkg1/Class1.html",
+ { "pkg1/Class1.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_5_PASSES\">\"Test 5 passes\"</a>"},
- {BUG_ID + "/pkg1/Class1.html",
+ { "pkg1/Class1.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_6_PASSES\">\"Test 6 passes\"</a>"},
//Retrieve value of constant in different class.
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_7_PASSES\">\"Test 7 passes\"</a>"},
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_8_PASSES\">\"Test 8 passes\"</a>"},
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_9_PASSES\">\"Test 9 passes\"</a>"},
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_10_PASSES\">\"Test 10 passes\"</a>"},
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_11_PASSES\">\"Test 11 passes\"</a>"},
//Retrieve value of constant in different package
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg2/Class3.html#TEST_12_PASSES\">\"Test 12 passes\"</a>"},
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg2/Class3.html#TEST_13_PASSES\">\"Test 13 passes\"</a>"},
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg2/Class3.html#TEST_14_PASSES\">\"Test 14 passes\"</a>"},
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg2/Class3.html#TEST_15_PASSES\">\"Test 15 passes\"</a>"},
- {BUG_ID + "/pkg1/Class2.html",
+ { "pkg1/Class2.html",
"Result: <a href=\"../pkg2/Class3.html#TEST_16_PASSES\">\"Test 16 passes\"</a>"},
//Retrieve value of constant from a package page
- {BUG_ID + "/pkg2/package-summary.html",
+ { "pkg2/package-summary.html",
"Result: <a href=\"../pkg2/Class3.html#TEST_17_PASSES\">\"Test 17 passes\"</a>"},
//Test @value tag used with custom tag.
- {BUG_ID + "/pkg1/CustomTagUsage.html",
+ { "pkg1/CustomTagUsage.html",
"<dt><span class=\"simpleTagLabel\">Todo:</span></dt>\n" +
"<dd>the value of this constant is 55.</dd>"},
//Test @value errors printed dues to invalid use or when used with
@@ -144,7 +141,7 @@
};
private static final String[][] NEGATED_TEST = {
//Base case: using @value on a constant.
- {BUG_ID + "/pkg1/Class1.html",
+ { "pkg1/Class1.html",
"Result: <a href=\"../pkg1/Class1.html#TEST_12_ERROR\">\"Test 12 " +
"generates an error message\"</a>"},
};
@@ -167,18 +164,4 @@
throw new AssertionError("javadoc threw DocletAbortException");
}
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testWarnBadParamNames/TestWarnBadParamNames.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testWarnBadParamNames/TestWarnBadParamNames.java Tue Apr 22 17:57:40 2014 -0700
@@ -35,14 +35,13 @@
public class TestWarnBadParamNames extends JavadocTester {
- private static final String BUG_ID = "4693440";
private static final String[][] TEST = {
{WARNING_OUTPUT, "warning - @param argument \"int\" is not a parameter name."},
{WARNING_OUTPUT, "warning - @param argument \"IDontExist\" is not a parameter name."},
{WARNING_OUTPUT, "warning - Parameter \"arg\" is documented more than once."},
};
private static final String[] ARGS = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, SRC_DIR + "/C.java"
+ "-Xdoclint:none", "-d", OUTPUT_DIR, SRC_DIR + "/C.java"
};
/**
@@ -54,18 +53,4 @@
tester.run(ARGS, TEST, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testWarnings/TestWarnings.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testWarnings/TestWarnings.java Tue Apr 22 17:57:40 2014 -0700
@@ -38,16 +38,13 @@
public class TestWarnings extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "4515705-4804296-4702454-4697036";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"
};
private static final String[] ARGS2 = new String[] {
- "-Xdoclint:none", "-d", BUG_ID, "-private", "-sourcepath", SRC_DIR,
+ "-Xdoclint:none", "-d", OUTPUT_DIR, "-private", "-sourcepath", SRC_DIR,
"pkg"
};
@@ -60,17 +57,17 @@
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/X.html", "can't find m()"},
- {BUG_ID + "/pkg/X.html", "can't find X()"},
- {BUG_ID + "/pkg/X.html", "can't find f"},
+ { "pkg/X.html", "can't find m()"},
+ { "pkg/X.html", "can't find X()"},
+ { "pkg/X.html", "can't find f"},
};
private static final String[][] TEST2 = {
- {BUG_ID + "/pkg/X.html",
+ { "pkg/X.html",
"<a href=\"../pkg/X.html#m--\"><code>m()</code></a><br/>"},
- {BUG_ID + "/pkg/X.html",
+ { "pkg/X.html",
"<a href=\"../pkg/X.html#X--\"><code>X()</code></a><br/>"},
- {BUG_ID + "/pkg/X.html",
+ { "pkg/X.html",
"<a href=\"../pkg/X.html#f\"><code>f</code></a><br/>"},
};
@@ -85,18 +82,4 @@
tester.run(ARGS2, TEST2, NO_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testWindowTitle/TestWindowTitle.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testWindowTitle/TestWindowTitle.java Tue Apr 22 17:57:40 2014 -0700
@@ -33,24 +33,23 @@
public class TestWindowTitle extends JavadocTester {
- private static final String BUG_ID = "8016675";
//Window title with JavaScript special characters.
private static final String TITLE_JS_CHARS =
"Testing \"Window 'Title'\" with a \\ backslash and a / " +
"forward slash and a \u00e8 unicode char also a tab and also a " +
"\t special character another \u0002 unicode)";
private static final String[] ARGS_JS_CHARS = new String[]{
- "-d", BUG_ID + "-1", "-windowtitle", TITLE_JS_CHARS, "-sourcepath", SRC_DIR, "p1", "p2"
+ "-d", OUTPUT_DIR + "-1", "-windowtitle", TITLE_JS_CHARS, "-sourcepath", SRC_DIR, "p1", "p2"
};
private static final String[][] TEST_JS_CHARS = {
- {BUG_ID + "-1/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing \\\"Window \\\'Title\\\'\\\" " +
"with a \\\\ backslash and a / forward slash and a \\u00E8 unicode char " +
"also a tab and also a \\t special character another \\u0002 unicode))\";"
},
};
private static final String[][] NEG_TEST_JS_CHARS = {
- {BUG_ID + "-1/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing \"Window \'Title\'\" " +
"with a \\ backslash and a / forward slash and a \u00E8 unicode char " +
"also a tab and also a \t special character another \u0002 unicode))\";"
@@ -61,24 +60,24 @@
private static final String TITLE_SCRIPT_TAG =
"Testing script tag in title </title><script>alert(\"Should not pop up\")</script>.";
private static final String[] ARGS_SCRIPT_TAG = new String[]{
- "-d", BUG_ID + "-2", "-windowtitle", TITLE_SCRIPT_TAG, "-sourcepath", SRC_DIR, "p1", "p2"
+ "-d", OUTPUT_DIR + "-2", "-windowtitle", TITLE_SCRIPT_TAG, "-sourcepath", SRC_DIR, "p1", "p2"
};
private static final String[][] TEST_SCRIPT_TAG = {
- {BUG_ID + "-2/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing script tag in title alert" +
"(\\\"Should not pop up\\\").)\";"
},
- {BUG_ID + "-2/p2/C2.html",
+ { "p2/C2.html",
"parent.document.title=\"C2 (Testing script tag in title alert" +
"(\\\"Should not pop up\\\").)\";"
}
};
private static final String[][] NEG_TEST_SCRIPT_TAG = {
- {BUG_ID + "-2/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing script tag in title </title><script>" +
"alert(\\\"Should not pop up\\\")</script>.)\";"
},
- {BUG_ID + "-2/p2/C2.html",
+ { "p2/C2.html",
"parent.document.title=\"C2 (Testing script tag in title </title><script>" +
"alert(\\\"Should not pop up\\\")</script>.)\";"
}
@@ -89,18 +88,18 @@
"Testing another <p>HTML</p> tag. Another <h1>tag</h1>. A " +
"<span id=\"testTag\">tag with attributes</span>. <script and </p are not tags.";
private static final String[] ARGS_HTML_TAGS = new String[]{
- "-d", BUG_ID + "-3", "-windowtitle", TITLE_HTML_TAGS,
+ "-d", OUTPUT_DIR + "-3", "-windowtitle", TITLE_HTML_TAGS,
"-sourcepath", SRC_DIR,
"p1", "p2"
};
private static final String[][] TEST_HTML_TAGS = {
- {BUG_ID + "-3/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing another HTML tag. Another tag. A " +
"tag with attributes. <script and </p are not tags.)\";"
}
};
private static final String[][] NEG_TEST_HTML_TAGS = {
- {BUG_ID + "-3/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing another <p>HTML</p> tag. Another " +
"<h1>tag</h1>. A <span id=\"testTag\">tag with attributes</span>. <script and " +
"</p are not tags.)\";"
@@ -111,18 +110,18 @@
private static final String TITLE_HTML_ENTITIES =
"Testing entities <script>alert(\"Should not pop up\")</script>.";
private static final String[] ARGS_HTML_ENTITIES = new String[]{
- "-d", BUG_ID + "-4", "-windowtitle", TITLE_HTML_ENTITIES,
+ "-d", OUTPUT_DIR + "-4", "-windowtitle", TITLE_HTML_ENTITIES,
"-sourcepath", SRC_DIR,
"p1", "p2"
};
private static final String[][] TEST_HTML_ENTITIES = {
- {BUG_ID + "-4/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing entities <script>alert(\\\"Should " +
"not pop up\\\")</script>.)\";"
}
};
private static final String[][] NEG_TEST_HTML_ENTITIES = {
- {BUG_ID + "-4/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing entities alert(\\\"Should not pop up\\\").)\";"
}
};
@@ -131,15 +130,15 @@
private static final String TITLE_EMPTY_TAGS =
"</title><script></script>";
private static final String[] ARGS_EMPTY_TAGS = new String[]{
- "-d", BUG_ID + "-5", "-windowtitle", TITLE_EMPTY_TAGS, "-sourcepath", SRC_DIR, "p1", "p2"
+ "-d", OUTPUT_DIR + "-5", "-windowtitle", TITLE_EMPTY_TAGS, "-sourcepath", SRC_DIR, "p1", "p2"
};
private static final String[][] TEST_EMPTY_TAGS = {
- {BUG_ID + "-5/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview\";"
}
};
private static final String[][] NEG_TEST_EMPTY_TAGS = {
- {BUG_ID + "-5/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (</title><script></script>)\";"
}
};
@@ -148,16 +147,16 @@
private static final String TITLE_UNICODE_CHARS =
"Testing unicode \u003cscript\u003ealert(\"Should not pop up\")\u003c/script\u003e.";
private static final String[] ARGS_UNICODE_CHARS = new String[]{
- "-d", BUG_ID + "-6", "-windowtitle", TITLE_UNICODE_CHARS, "-sourcepath", SRC_DIR, "p1", "p2"
+ "-d", OUTPUT_DIR + "-6", "-windowtitle", TITLE_UNICODE_CHARS, "-sourcepath", SRC_DIR, "p1", "p2"
};
private static final String[][] TEST_UNICODE_CHARS = {
- {BUG_ID + "-6/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing unicode alert(\\\"Should " +
"not pop up\\\").)\";"
}
};
private static final String[][] NEG_TEST_UNICODE_CHARS = {
- {BUG_ID + "-6/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing unicode <script>alert(\\\"Should not pop up\\\")" +
"</script>.)\";"
}
@@ -167,20 +166,20 @@
private static final String TITLE_EMPTY =
"";
private static final String[] ARGS_EMPTY_TITLE = new String[]{
- "-d", BUG_ID + "-7", "-windowtitle", TITLE_EMPTY, "-sourcepath", SRC_DIR, "p1", "p2"
+ "-d", OUTPUT_DIR + "-7", "-windowtitle", TITLE_EMPTY, "-sourcepath", SRC_DIR, "p1", "p2"
};
private static final String[][] TEST_EMPTY = {
- {BUG_ID + "-7/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview\";"
}
};
//Test doctitle.
private static final String[] ARGS_DOCTITLE = new String[]{
- "-d", BUG_ID + "-8", "-doctitle", TITLE_JS_CHARS, "-sourcepath", SRC_DIR, "p1", "p2"
+ "-d", OUTPUT_DIR + "-8", "-doctitle", TITLE_JS_CHARS, "-sourcepath", SRC_DIR, "p1", "p2"
};
private static final String[][] NEG_TEST_DOCTITLE = {
- {BUG_ID + "-8/overview-summary.html",
+ { "overview-summary.html",
"parent.document.title=\"Overview (Testing \\\"Window \\\'Title\\\'\\\" " +
"with a \\\\ backslash and a / forward slash and a \\u00E8 unicode char " +
"also a tab and also a \\t special character another \\u0002 unicode)\";"
@@ -203,18 +202,4 @@
tester.run(ARGS_DOCTITLE, NO_TEST, NEG_TEST_DOCTITLE);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/testXOption/TestXOption.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testXOption/TestXOption.java Tue Apr 22 17:57:40 2014 -0700
@@ -32,17 +32,14 @@
public class TestXOption extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8007687";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR, "-X",
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-X",
SRC_DIR + "/TestXOption.java"
};
private static final String[] ARGS2 = new String[] {
- "-d", BUG_ID, "-sourcepath", SRC_DIR,
+ "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR,
SRC_DIR + "/TestXOption.java"
};
@@ -67,18 +64,4 @@
tester.checkExitCode(EXPECTED_EXIT_CODE, actualExitCode);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}
--- a/langtools/test/com/sun/javadoc/typeAnnotations/smoke/TestSmoke.java Tue Apr 22 17:41:11 2014 -0700
+++ b/langtools/test/com/sun/javadoc/typeAnnotations/smoke/TestSmoke.java Tue Apr 22 17:57:40 2014 -0700
@@ -36,76 +36,73 @@
public class TestSmoke extends JavadocTester {
- //Test information.
- private static final String BUG_ID = "8006735";
-
//Javadoc arguments.
private static final String[] ARGS = new String[] {
- "-d", BUG_ID, "-private", "-sourcepath", SRC_DIR, "pkg"
+ "-d", OUTPUT_DIR, "-private", "-sourcepath", SRC_DIR, "pkg"
};
//Input for string search tests.
private static final String[][] TEST = {
- {BUG_ID + "/pkg/T0x1C.html", "@DA"},
- {BUG_ID + "/pkg/T0x1D.html", "@DA"},
- {BUG_ID + "/pkg/T0x0D.html", "@DA"},
- {BUG_ID + "/pkg/T0x06.html", "@DA"},
- {BUG_ID + "/pkg/T0x0B.html", "@DA"},
- {BUG_ID + "/pkg/T0x0F.html", "@DA"},
+ { "pkg/T0x1C.html", "@DA"},
+ { "pkg/T0x1D.html", "@DA"},
+ { "pkg/T0x0D.html", "@DA"},
+ { "pkg/T0x06.html", "@DA"},
+ { "pkg/T0x0B.html", "@DA"},
+ { "pkg/T0x0F.html", "@DA"},
/* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
- {BUG_ID + "/pkg/T0x20.html", "@DA"},
+ { "pkg/T0x20.html", "@DA"},
*/
/* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
- {BUG_ID + "/pkg/T0x20A.html", "@DTPA"},
+ { "pkg/T0x20A.html", "@DTPA"},
*/
/* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
- {BUG_ID + "/pkg/T0x20B.html", "@DA"},
+ { "pkg/T0x20B.html", "@DA"},
*/
/* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
- {BUG_ID + "/pkg/T0x22.html", "@DA"},
+ { "pkg/T0x22.html", "@DA"},
*/
/* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
- {BUG_ID + "/pkg/T0x22A.html", "@DTPA"},
+ { "pkg/T0x22A.html", "@DTPA"},
*/
/* @ignore 8013406: Test cases fail in javadoc test TestSmoke.java
- {BUG_ID + "/pkg/T0x22B.html", "@DA"},
+ { "pkg/T0x22B.html", "@DA"},
*/
- {BUG_ID + "/pkg/T0x10.html", "@DA"},
- {BUG_ID + "/pkg/T0x10A.html", "@DA"},
- {BUG_ID + "/pkg/T0x12.html", "@DA"},
- {BUG_ID + "/pkg/T0x11.html", "@DA"},
- {BUG_ID + "/pkg/T0x13.html", "@DA"},
- {BUG_ID + "/pkg/T0x15.html", "@DA"},
- {BUG_ID + "/pkg/T0x14.html", "@DA"},
- {BUG_ID + "/pkg/T0x16.html", "@DA"}
+ { "pkg/T0x10.html", "@DA"},
+ { "pkg/T0x10A.html", "@DA"},
+ { "pkg/T0x12.html", "@DA"},
+ { "pkg/T0x11.html", "@DA"},
+ { "pkg/T0x13.html", "@DA"},
+ { "pkg/T0x15.html", "@DA"},
+ { "pkg/T0x14.html", "@DA"},
+ { "pkg/T0x16.html", "@DA"}
};
private static final String[][] NEGATED_TEST = {
- {BUG_ID + "/pkg/T0x1C.html", "@A"},
- {BUG_ID + "/pkg/T0x1D.html", "@A"},
- {BUG_ID + "/pkg/T0x00.html", "@A"},
- {BUG_ID + "/pkg/T0x01.html", "@A"},
- {BUG_ID + "/pkg/T0x02.html", "@A"},
- {BUG_ID + "/pkg/T0x04.html", "@A"},
- {BUG_ID + "/pkg/T0x08.html", "@A"},
- {BUG_ID + "/pkg/T0x0D.html", "@A"},
- {BUG_ID + "/pkg/T0x06.html", "@A"},
- {BUG_ID + "/pkg/T0x0B.html", "@A"},
- {BUG_ID + "/pkg/T0x0F.html", "@A"},
- {BUG_ID + "/pkg/T0x20.html", "@A"},
- {BUG_ID + "/pkg/T0x20A.html", "@A"},
- {BUG_ID + "/pkg/T0x20B.html", "@A"},
- {BUG_ID + "/pkg/T0x22.html", "@A"},
- {BUG_ID + "/pkg/T0x22A.html", "@A"},
- {BUG_ID + "/pkg/T0x22B.html", "@A"},
- {BUG_ID + "/pkg/T0x10.html", "@A"},
- {BUG_ID + "/pkg/T0x10A.html", "@A"},
- {BUG_ID + "/pkg/T0x12.html", "@A"},
- {BUG_ID + "/pkg/T0x11.html", "@A"},
- {BUG_ID + "/pkg/T0x13.html", "@A"},
- {BUG_ID + "/pkg/T0x15.html", "@A"},
- {BUG_ID + "/pkg/T0x14.html", "@A"},
- {BUG_ID + "/pkg/T0x16.html", "@A"}
+ { "pkg/T0x1C.html", "@A"},
+ { "pkg/T0x1D.html", "@A"},
+ { "pkg/T0x00.html", "@A"},
+ { "pkg/T0x01.html", "@A"},
+ { "pkg/T0x02.html", "@A"},
+ { "pkg/T0x04.html", "@A"},
+ { "pkg/T0x08.html", "@A"},
+ { "pkg/T0x0D.html", "@A"},
+ { "pkg/T0x06.html", "@A"},
+ { "pkg/T0x0B.html", "@A"},
+ { "pkg/T0x0F.html", "@A"},
+ { "pkg/T0x20.html", "@A"},
+ { "pkg/T0x20A.html", "@A"},
+ { "pkg/T0x20B.html", "@A"},
+ { "pkg/T0x22.html", "@A"},
+ { "pkg/T0x22A.html", "@A"},
+ { "pkg/T0x22B.html", "@A"},
+ { "pkg/T0x10.html", "@A"},
+ { "pkg/T0x10A.html", "@A"},
+ { "pkg/T0x12.html", "@A"},
+ { "pkg/T0x11.html", "@A"},
+ { "pkg/T0x13.html", "@A"},
+ { "pkg/T0x15.html", "@A"},
+ { "pkg/T0x14.html", "@A"},
+ { "pkg/T0x16.html", "@A"}
};
/**
@@ -117,18 +114,4 @@
tester.run(ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
-
- /**
- * {@inheritDoc}
- */
- public String getBugId() {
- return BUG_ID;
- }
-
- /**
- * {@inheritDoc}
- */
- public String getBugName() {
- return getClass().getName();
- }
}