Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8025134 Andre's conformance bugs with hg tip fa491b75d3e4
  3. JDK-8027024

String.prototype.charAt and charCodeAt do not evaluate 'self' and 'pos' arguments in right order

    XMLWordPrintable

Details

    • Sub-task
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • None
    • b115
    • generic
    • generic

    Description

      jjs> String.prototype.charAt.call({toString:function(){print("toStr")}}, {valueOf:function(){print("valueOf")}})

      Expected: first "toStr" and then "valueOf" printed
      Actual: "valueOf" and then "toStr" printed

      jjs> String.prototype.charCodeAt.call({toString:function(){print("toStr")}}, {valueOf:function(){print("valueOf")}})

      Expected: first "toStr" and then "valueOf" printed
      Actual: "valueOf" and then "toStr" printed

      Attachments

        Activity

          People

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: