Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-473

StringEscapeUtils.escapeJava () not escaping forward slash correctly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4
    • 2.5
    • lang.*
    • None
    • Solaris and Windows

    Description

      We are trying to escape forward slash using StringEscapeUtils.escapeJava () method. The output returned by this method is no longer a valid Java String.

      e.g.

      String s = "a/b/c";
      System.out.println(StringEscapeUtils.escapeJava (s));

      The output returned is a\/b\/c which is not a even a valid Java String.

      This was working fine in 2.0 release of this jar.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kala2031 Vishal Kala
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: