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

different behavior for [enter] code between 1.3.1 and 1.4.2

    XMLWordPrintable

Details

    • x86
    • windows_xp

    Description

      When a user input a string and [enter], string+[enter] code in 1.4.2 is different from that in 1.3.1.

      CONFIGURATION:
       OS : WindowsXP (SP1, Japanese)
       JRE : 1.3.1_16/1.4.2_10

      REPRODUCE:
       1) Compile the attached test program, Frame2.java
       2) Invoke "java Frame2"
          A frame whic has 2 text area.
       3) input "a","b","c" and press enter in the upper textarea.
       4) Click "translate" button.

      The following results will show up in the lower textarea.

      In 1.3.1_16,
      length=4
      (0x)61
      (0x)62
      (0x)63
      (0x)a
        
      In 1.4.2_10
      length=5
      (0x)61
      (0x)62
      (0x)63
      (0x)d
      (0x)a

      NOTE:
       The difference seems to come from different way for CR.
       "enter" is "\n" In 1.3.1, but in "\r\n" in 1.4.2.

      Attachments

        Issue Links

          Activity

            People

              dav Andrei Dmitriev (Inactive)
              tbaba Tadayuki Baba (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: