Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-44480

StringUtil.toUpperCase returns lower case letters

    Details

      Description

      The toUpperCase method of the StringUtil class uses the toLowerCase method of the String class if using non-ascii values.

      The following two tests fail:

      	@Test
      	public void testNonAsciiLower() {
      		String value = StringUtil.toUpperCase("äöüß", Locale.GERMAN);
      		assertEquals("ÄÖÜSS", value);
      	}
      	
      	@Test
      	public void testNonAsciiUpper() {
      		String value = StringUtil.toUpperCase("ÄÖÜSS", Locale.GERMAN);
      		assertEquals("ÄÖÜSS", value);
      	}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hugo.huijser Hugo Huijser
              Reporter:
              frickeo Olaf Fricke
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 35 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.X EE
                  7.0.0 M1