8029504: Regression: TestDocRootLink test fails on Windows
authorksrini
Fri, 06 Dec 2013 09:07:47 -0800
changeset 22160 fe9f4b305bcf
parent 22159 682da512ec17
child 22161 d79fb23b5dca
8029504: Regression: TestDocRootLink test fails on Windows Reviewed-by: bpatel, jjg
langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
langtools/test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java
--- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java	Wed Dec 18 10:29:25 2013 -0500
+++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java	Fri Dec 06 09:07:47 2013 -0800
@@ -1363,7 +1363,7 @@
             return new ContentBuilder();
         }
 
-        String seetext = replaceDocRootDir(see.text());
+        String seetext = replaceDocRootDir(Util.normalizeNewlines(see.text()));
 
         //Check if @see is an href or "string"
         if (seetext.startsWith("<") || seetext.startsWith("\"")) {
--- a/langtools/test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java	Wed Dec 18 10:29:25 2013 -0500
+++ b/langtools/test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java	Fri Dec 06 09:07:47 2013 -0800
@@ -23,7 +23,7 @@
 
 /*
  * @test
- * @bug 6553182 8025416
+ * @bug 6553182 8025416 8029504
  * @summary This test verifies the -Xdocrootparent option.
  * @author Bhavesh Patel
  * @library ../lib/