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

Nashorn: String.prototype.toLowerCase() requires SpecialCasing support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 8
    • core-libs
    • generic
    • linux_ubuntu

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b119)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b61, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      String.prototype.toLowerCase() [ES5.1 - 15.5.4.16] needs to apply the additional case folding rules from SpecialCasing.txt. This does not or rather no longer work correctly in Nashorn on Java8. This has regressed because of JDK-8020037.

      The bug report for JDK-8020037 looks wrong to me, also see JDK-7036910 for a related discussion.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      jjs> "\u0130".toLowerCase() === "\u0069\u0307"

      Expected: true
      Actual: false


      REPRODUCIBILITY :
      This bug can be reproduced always.

            hannesw Hannes Wallnoefer
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: