1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java Wed Oct 17 16:43:26 2012 +0100 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java Tue Oct 23 13:20:37 2012 -0700 1.3 @@ -55,11 +55,9 @@ 1.4 * @param indexbuilder Unicode based Index from {@link IndexBuilder} 1.5 */ 1.6 public SingleIndexWriter(ConfigurationImpl configuration, 1.7 - String filename, 1.8 + DocPath filename, 1.9 IndexBuilder indexbuilder) throws IOException { 1.10 super(configuration, filename, indexbuilder); 1.11 - relativepathNoSlash = "."; 1.12 - relativePath = "./"; 1.13 } 1.14 1.15 /** 1.16 @@ -71,7 +69,7 @@ 1.17 public static void generate(ConfigurationImpl configuration, 1.18 IndexBuilder indexbuilder) { 1.19 SingleIndexWriter indexgen; 1.20 - String filename = "index-all.html"; 1.21 + DocPath filename = DocPaths.INDEX_ALL; 1.22 try { 1.23 indexgen = new SingleIndexWriter(configuration, 1.24 filename, indexbuilder); 1.25 @@ -117,7 +115,7 @@ 1.26 for (int i = 0; i < indexbuilder.elements().length; i++) { 1.27 String unicode = (indexbuilder.elements())[i].toString(); 1.28 contentTree.addContent( 1.29 - getHyperLink("#_" + unicode + "_", new StringContent(unicode))); 1.30 + getHyperLink("_" + unicode + "_", new StringContent(unicode))); 1.31 contentTree.addContent(getSpace()); 1.32 } 1.33 }