VirtualBox

Changeset 51448 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 28, 2014 1:51:05 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94011
Message:

Main/glue-java.xsl: fix the check, it was a bit too paranoid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/glue-java.xsl

    r51444 r51448  
    19041904    <xsl:otherwise>
    19051905      <xsl:variable name="hasReturnParms" select="param[@dir='return']" />
    1906       <xsl:variable name="hasOutParms" select="param[@dir='out']" />
     1906      <xsl:variable name="hasOutParms" select="count(param[@dir='out']) > 0" />
    19071907      <xsl:variable name="returnidltype" select="param[@dir='return']/@type" />
    19081908      <xsl:variable name="returnidlsafearray" select="param[@dir='return']/@safearray" />
    1909       <xsl:if test="$hasOutParms and not($hasReturnParms) and (count(param[@dir='out']) = 1)">
     1909      <xsl:if test="$hasOutParms and not($hasReturnParms) and (string-length(@wsmap) = 0) and (count(param[@dir='out']) = 1)">
    19101910        <xsl:call-template name="fatalError">
    1911           <xsl:with-param name="msg" select="concat('genMethod: ', $ifname, '::', $methodname, ' has exactly one out parameter and no return parameter, this causes trouble with JAX-WS and the out parameter needs to be converted to return')" />
     1911          <xsl:with-param name="msg" select="concat('genMethod: ', $ifname, $hasOutParms, not($hasReturnParms), 'a', string-length(@wsmap) = 0, 'b', @wsmap, (count(param[@dir='out']) = 1), '::', $methodname, ' has exactly one out parameter and no return parameter, this causes trouble with JAX-WS and the out parameter needs to be converted to return')" />
    19121912        </xsl:call-template>
    19131913      </xsl:if>
     
    21652165    <xsl:otherwise>
    21662166      <xsl:variable name="hasReturnParms" select="param[@dir='return']" />
    2167       <xsl:variable name="hasOutParms" select="param[@dir='out']" />
    21682167      <xsl:variable name="returnidltype" select="param[@dir='return']/@type" />
    21692168      <xsl:variable name="returnidlsafearray" select="param[@dir='return']/@safearray" />
     
    46034602      <xsl:otherwise>
    46044603        <!-- We don't need WSDL-specific interfaces here -->
    4605         <xsl:if test="not($self_target='wsdl') and not($module)">
     4604        <xsl:if test="not(@internal='yes') and not($self_target='wsdl') and not($module)">
    46064605          <xsl:call-template name="genIface">
    46074606            <xsl:with-param name="ifname" select="@name" />
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette