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

XSL: wrong answer from substring() function

    XMLWordPrintable

Details

    • b49
    • Verified

    Backports

      Description

        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|

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: