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

Unexpected NPE from toLowerCase

    XMLWordPrintable

Details

    • 01
    • generic, x86
    • generic, windows_xp

    Backports

      Description

        toLowerCase(Locale.ENGLISH) failes with NPE for some strings.
        This behavior is unspecified and different from 1.4.2

        Use following testcase to reproduce:

        import java.util.Locale;
        public class LC {
         public static void main(String[] args) {
            System.err.println("Yo\uffffhic".toLowerCase(Locale.ENGLISH));
         }
        }

        ###@###.### 2004-09-14

        Attachments

          Issue Links

            Activity

              People

                nlindenbsunw Norbert Lindenberg (Inactive)
                igor Igor Nekrestyanov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: