8182844: Fix broken links in the generated jvmti.html
Summary: Fix broken links in the jvmti.html
Reviewed-by: clanger, dcubed
--- a/hotspot/src/share/vm/prims/jvmti.xml Tue Aug 01 15:08:10 2017 +0200
+++ b/hotspot/src/share/vm/prims/jvmti.xml Tue Aug 01 08:53:32 2017 -0700
@@ -404,7 +404,7 @@
interfaces are more appropriate than <jvmti/> for many tools.
For more information on the Java Platform Debugger Architecture,
see the
- <externallink id="docs/technotes/guides/jpda/architecture.html">Java
+ <externallink id="jpda/architecture.html">Java
Platform Debugger Architecture website</externallink>.
</intro>
@@ -10927,7 +10927,7 @@
for a class. The segment is typically a directory or JAR file.
<p/>
In the live phase the <paramlink id="segment"/> may be used to specify any platform-dependent
- path to a <externallink id="docs/technotes/guides/jar/jar.html">
+ path to a <externallink id="jar/jar.html">
JAR file</externallink>. The agent should take care that the JAR file does not
contain any classes or resources other than those to be defined by the bootstrap
class loader for the purposes of instrumentation.
@@ -10975,7 +10975,7 @@
for a class. The segment is typically a directory or JAR file.
<p/>
In the live phase the <paramlink id="segment"/> is a platform-dependent path to a
- <externallink id="docs/technotes/guides/jar/jar.html">JAR file</externallink> to be
+ <externallink id="jar/jar.html">JAR file</externallink> to be
searched after the system class loader unsuccessfully searches for a class. The agent should
take care that the JAR file does not contain any classes or resources other than those to be
defined by the system class loader for the purposes of instrumentation.
--- a/hotspot/src/share/vm/prims/jvmti.xsl Tue Aug 01 15:08:10 2017 +0200
+++ b/hotspot/src/share/vm/prims/jvmti.xsl Tue Aug 01 08:53:32 2017 -0700
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
- Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
@@ -1033,10 +1033,6 @@
<xsl:template match="externallink">
<a>
<xsl:attribute name="href">
- <!-- All external links start from the same prefix -->
- <xsl:text>http://docs.oracle.com/javase/</xsl:text>
- <xsl:value-of select="//specification/@majorversion"/>
- <xsl:text>/</xsl:text>
<xsl:value-of select="@id"/>
</xsl:attribute>
<xsl:value-of select="."/>