Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8062924

XSL: wrong answer from substring() function

XMLWordPrintable

    • b49
    • Verified

        XSL substring(value,start, length) function incorrectly process the -Inf length values (the -Inf is treated as Inf).
        Consider the following xsl code snippet:
        |<xsl:value-of select="substring('asdf',2,-1 div 0)"/>|
        It should return:
        ||
        But the result is:
        |sdf|

              aefimov Aleksej Efimov
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: