8199155: Accessibility issues in jdk.jdi
authoramenkov
Thu, 26 Jul 2018 11:31:15 -0700
changeset 51253 35ca229c7f6f
parent 51252 80afb5e16bd1
child 51254 448cd909c9e2
8199155: Accessibility issues in jdk.jdi Reviewed-by: dtitov, sspitsyn
make/jdk/src/classes/build/tools/jdwpgen/RootNode.java
src/hotspot/share/prims/jvmti.xsl
src/jdk.jdi/share/classes/com/sun/jdi/doc-files/signature.html
--- a/make/jdk/src/classes/build/tools/jdwpgen/RootNode.java	Thu Jul 26 13:08:42 2018 -0400
+++ b/make/jdk/src/classes/build/tools/jdwpgen/RootNode.java	Thu Jul 26 11:31:15 2018 -0700
@@ -52,14 +52,16 @@
         writer.println("</style>");
         writer.println("</head>");
         writer.println("<body>");
-        writer.println("<ul>");
+        writer.println("<ul role=\"navigation\">");
         for (Node node : components) {
             node.documentIndex(writer);
         }
         writer.println("</ul>");
+        writer.println("<div role=\"main\">");
         for (Node node : components) {
             node.document(writer);
         }
+        writer.println("</div>");
         writer.println("</body></html>");
     }
 
--- a/src/hotspot/share/prims/jvmti.xsl	Thu Jul 26 13:08:42 2018 -0400
+++ b/src/hotspot/share/prims/jvmti.xsl	Thu Jul 26 11:31:15 2018 -0700
@@ -59,10 +59,10 @@
         </style>
   </head>
   <body>
-    <div class="centered">
+    <div class="centered" role="banner">
       <xsl:apply-templates select="title"/>
     </div>
-    <ul>
+    <ul role="navigation">
       <li>
         <a href="#SpecificationIntro"><b>Introduction</b></a>
         <ul>
@@ -167,6 +167,7 @@
       </li>
     </ul>
     <!-- end table of contents, begin body -->
+    <div role="main">
     <div class="sep"/>
     <hr class="thick"/>
     <div class="sep"/>
@@ -202,6 +203,7 @@
     </xsl:if>
     <p id="ChangeHistory"/>
       <xsl:apply-templates select="changehistory"/>
+    </div>
   </body>
 </html>
 </xsl:template>
--- a/src/jdk.jdi/share/classes/com/sun/jdi/doc-files/signature.html	Thu Jul 26 13:08:42 2018 -0400
+++ b/src/jdk.jdi/share/classes/com/sun/jdi/doc-files/signature.html	Thu Jul 26 11:31:15 2018 -0700
@@ -7,10 +7,15 @@
 <META charset="UTF-8">
 <STYLE type="text/css">
 tbody th { font-weight: normal }
+table {
+    margin-left: 40px;
+    margin-top: 1em;
+    margin-bottom: 1em;
+}
 </STYLE>
 </HEAD>
 <BODY style="background-color:white">
-<dl><dd>
+<div role="main">
 <Table Border="0">
 <caption style="font-size:x-large"><b>JDI Type Signatures</b></caption>
 <thead>
@@ -38,11 +43,11 @@
 <td>method type (including constructors)
 </tbody>
 </Table>
-</dd></dl>
 <p>For example, the Java method:
 <pre>    long f (int n, String s, int[] arr);
 </pre>has the following type signature:
 <pre>    (ILjava/lang/String;[I)J
 </pre>
+</div>
 </BODY>
 </HTML>