JDK-8210775 : JVM TI Spec missing copyright
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-09-14
  • Updated: 2018-10-11
  • Resolved: 2018-09-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12
11.0.2Fixed 12 b12Fixed
Related Reports
Duplicate :  
Description
The JVM TI Spec (specs/jvmti.html) generated from the following files does not contain a copyright on publication:

http://hg.openjdk.java.net/jdk/jdk11/file/tip/src/hotspot/share/prims/jvmti.xml 
http://hg.openjdk.java.net/jdk/jdk11/file/tip/src/hotspot/share/prims/jvmti.xsl

The source itself does contain a copyright.


These files should be updated as follows to add the appropriate copyright in the footer:

diff -r 9151fde080e6 src/hotspot/share/prims/jvmti.xml
--- a/src/hotspot/share/prims/jvmti.xml Fri Sep 14 11:17:25 2018 -0700
+++ b/src/hotspot/share/prims/jvmti.xml Fri Sep 14 12:25:03 2018 -0700
@@ -24,7 +24,7 @@
 -->

 <!DOCTYPE specification [
-   <!ELEMENT specification (title, intro*, functionsection, errorsection,
+   <!ELEMENT specification (title, copyright, intro*, functionsection, errorsection,
                             eventsection, datasection, issuessection, changehistory)>
    <!ATTLIST specification label CDATA #REQUIRED
                            majorversion CDATA #REQUIRED
@@ -34,6 +34,8 @@
    <!ELEMENT title (#PCDATA|jvmti|tm)*>
    <!ATTLIST title subtitle CDATA #REQUIRED>

+   <!ELEMENT copyright ANY>
+
    <!ELEMENT intro ANY>
    <!ATTLIST intro id CDATA #IMPLIED
                    label CDATA "">
@@ -365,6 +367,10 @@
     <tm>JVM</tm> Tool Interface
   </title>

+  <copyright>
+    Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
+  </copyright>
+
   <intro id="whatIs" label="What is the JVM Tool Interface?">
     The <tm>JVM</tm> Tool Interface (<jvmti/>)
     is a programming interface used by development and monitoring tools.
diff -r 9151fde080e6 src/hotspot/share/prims/jvmti.xsl
--- a/src/hotspot/share/prims/jvmti.xsl Fri Sep 14 11:17:25 2018 -0700
+++ b/src/hotspot/share/prims/jvmti.xsl Fri Sep 14 12:25:03 2018 -0700
@@ -204,6 +204,7 @@
     <p id="ChangeHistory"/>
       <xsl:apply-templates select="changehistory"/>
     </div>
+    <xsl:apply-templates select="copyright"/>
   </body>
 </html>
 </xsl:template>
@@ -219,6 +220,12 @@
     </h3>
 </xsl:template>

+<xsl:template match="copyright">
+  <p>
+    <xsl:apply-templates/>
+  </p>
+</xsl:template>
+
 <xsl:template match="functionsection">
   <div class="sep"/>
   <hr class="thick"/>

Comments
Fix Request: Simple fix to insert copyright header.
24-09-2018