JDK-6589868 : transition to Mercurial: need to eliminate dependencies on SCCS keywords
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-08-07
  • Updated: 2011-09-22
  • Resolved: 2011-03-08
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 6 JDK 7 Other
6u10Fixed 7Fixed OpenJDK6,hs11Fixed
Description
The jvmti.xml defines the variable "onedotmicroversion" value using the SCCS %I% keyword:
<specification label="JVM(TM) Tool Interface"
        majorversion="1"
        minorversion="1"
        onedotmicroversion="%I%">

There are the following dependencies on the onedotmicroversion value:
jvmtiLib.xsl:
  <xsl:variable name="microversionbase" select="100"/>

  <xsl:template name="microversion">
    <xsl:variable name="micro" select="substring-after(//specification/@onedotmicroversion, '1.')"/>
    <xsl:choose>
      <xsl:when test="string($micro)=''">
        <xsl:text>dev</xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$micro - $microversionbase"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

All the above needs to be fixed to complete a transition from TeamWare to Mercurial.

Comments
SUGGESTED FIX This is the suggested fix below: % sccs sccsdiff -c -r1.208 -r1.209 jvmti.xml ------- jvmti.xml ------- *** /tmp/geta7080 Wed Sep 5 16:40:59 2007 --- /tmp/getb7080 Wed Sep 5 16:41:00 2007 *************** *** 30,36 **** <!ATTLIST specification label CDATA #REQUIRED majorversion CDATA #REQUIRED minorversion CDATA #REQUIRED ! onedotmicroversion CDATA #REQUIRED> <!ELEMENT title (#PCDATA|jvmti|tm)*> <!ATTLIST title subtitle CDATA #REQUIRED> --- 30,36 ---- <!ATTLIST specification label CDATA #REQUIRED majorversion CDATA #REQUIRED minorversion CDATA #REQUIRED ! microversion CDATA #REQUIRED> <!ELEMENT title (#PCDATA|jvmti|tm)*> <!ATTLIST title subtitle CDATA #REQUIRED> *************** *** 361,367 **** <specification label="JVM(TM) Tool Interface" majorversion="1" minorversion="1" ! onedotmicroversion="%I%"> <title subtitle="Version"> <tm>JVM</tm> Tool Interface </title> --- 361,367 ---- <specification label="JVM(TM) Tool Interface" majorversion="1" minorversion="1" ! microversion="109"> <title subtitle="Version"> <tm>JVM</tm> Tool Interface </title> % sccs sccsdiff -c -r1.43 -r1.44 jvmtiLib.xsl ------- jvmtiLib.xsl ------- *** /tmp/geta6612 Wed Sep 5 16:12:48 2007 --- /tmp/getb6612 Wed Sep 5 16:12:48 2007 *************** *** 27,44 **** <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:variable name="microversionbase" select="100"/> - <xsl:template name="microversion"> ! <xsl:variable name="micro" select="substring-after(//specification/@onedotmicroversion, '1.')"/> ! <xsl:choose> ! <xsl:when test="string($micro)=''"> ! <xsl:text>dev</xsl:text> ! </xsl:when> ! <xsl:otherwise> ! <xsl:value-of select="$micro - $microversionbase"/> ! </xsl:otherwise> ! </xsl:choose> </xsl:template> <xsl:template name="showbasicversion"> --- 27,34 ---- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template name="microversion"> ! <xsl:value-of select="//specification/@microversion"/> </xsl:template> <xsl:template name="showbasicversion">
05-09-2007

EVALUATION Please, refer to the description what needs to be done.
07-08-2007