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

string + character does the wrong thing.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 0.9
    • 1.0
    • core-libs
    • None
    • 0.9internal
    • sparc
    • solaris_2.5
    • Not verified

        If you try to concatenate a string and a character, you get the string + the integer value of the character. For example,

             char slash = '/';
             "/usr/home" + slash

        yields
             /usr/home47

        You should get
             /usr/home/

              fyellinsunw Frank Yellin (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: