changeset 45769:2ed643787f98

8182736: javadoc generates bad names and broken module graph links Reviewed-by: jjg, bpatel, darcy, ksrini Contributed-by: bhavesh.patel@oracle.com, jonathan.gibbons@oracle.com
author jjg
date Mon, 26 Jun 2017 18:48:25 -0700
parents 3e7e91509702
children 115c8ed31e9d ece8acd94d98 3daf29464c02
files jdk/make/src/classes/build/tools/taglet/ModuleGraph.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/make/src/classes/build/tools/taglet/ModuleGraph.java	Fri Jun 23 14:32:59 2017 -0400
+++ b/jdk/make/src/classes/build/tools/taglet/ModuleGraph.java	Mon Jun 26 18:48:25 2017 -0700
@@ -29,6 +29,7 @@
 import java.util.List;
 import java.util.Set;
 import javax.lang.model.element.Element;
+import javax.lang.model.element.ModuleElement;
 import com.sun.source.doctree.DocTree;
 import jdk.javadoc.doclet.Taglet;
 import static jdk.javadoc.doclet.Taglet.Location.*;
@@ -62,7 +63,7 @@
             return "";
         }
 
-        String moduleName = element.getSimpleName().toString();
+        String moduleName = ((ModuleElement) element).getQualifiedName().toString();
         String imageFile = moduleName + "-graph.png";
         int thumbnailHeight = -1;
         String hoverImage = "";