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

character is displayed by ? symbol in jdk1.3x and jdk1.4.x

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_8

      Description

      Java is not displaying a character as it supposed to and it is replaced by "?" symbol instead of that character. The character is displaying fine in jdk1.2.2 versions and not on jdk1.3.x & jdk1.4.x

      TEST CASE:
      ----------

      public class SabreTest {

      public static final char signInSeperator1 = '§';
      public static final char signInSeperator2 = '\u00a7';
      public static final String signInSeperator3 = "§";
      public static final String signInSeperator4 = "\u00a7";

      public static void main(String[] args)
      {
      System.out.println("SignInSeperator1 "+signInSeperator1+" value is " + (int)signInSeperator1);
      System.out.println("SignInSeperator2 "+signInSeperator2+" value is " + (int)signInSeperator2);
      System.out.println("SignInSeperator3 "+signInSeperator3+" value is " +
      (int)signInSeperator3.charAt(0));
      System.out.println("SignInSeperator4 "+signInSeperator4+" value is " +
      (int)signInSeperator4.charAt(0));
      }
      }


      MY RESULTS:
      -----------

      57 bharadwaj (Srini) =>java -version
      java version "1.2.2"
      Solaris VM (build Solaris_JDK_1.2.2_15, native threads, sunwjit)
      58 bharadwaj (Srini) =>javac SabreTest.java
      59 bharadwaj (Srini) =>java SabreTest
      SignInSeperator1 § value is 167
      SignInSeperator2 § value is 167
      SignInSeperator3 § value is 167
      SignInSeperator4 § value is 167
      60 bharadwaj (Srini) =>


      59 bharadwaj (Srini) =>java -version
      java version "1.3.1_09"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_09-b03)
      Java HotSpot(TM) Client VM (build 1.3.1_09-b03, mixed mode)
      60 bharadwaj (Srini) =>javac SabreTest.java
      61 bharadwaj (Srini) =>java SabreTest
      SignInSeperator1 ? value is 65533
      SignInSeperator2 ? value is 167
      SignInSeperator3 ? value is 65533
      SignInSeperator4 ? value is 167
      62 bharadwaj (Srini) =>


      51 bharadwaj (Srini) =>java -version
      java version "1.4.1_05"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_05-b01)
      Java HotSpot(TM) Client VM (build 1.4.1_05-b01, mixed mode)
      52 bharadwaj (Srini) =>javac SabreTest.java
      53 bharadwaj (Srini) =>java SabreTest
      SignInSeperator1 ? value is 65533
      SignInSeperator2 ? value is 167
      SignInSeperator3 ? value is 65533
      SignInSeperator4 ? value is 167
      54 bharadwaj (Srini) =>

        Attachments

          Activity

            People

            • Assignee:
              gafter Neal Gafter
              Reporter:
              srmantha Srinivas Mantha (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: