United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6589868 : transition to Mercurial: need to eliminate dependencies on SCCS keywords

Details
Type:
Bug
Submit Date:
2007-08-07
Status:
Closed
Updated Date:
2011-09-22
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
jvmti
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs11 (b07)

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

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">
                                     
2007-09-05
EVALUATION

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



Hardware and Software, Engineered to Work Together