commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vishal Kala (JIRA)" <j...@apache.org>
Subject [jira] Created: (LANG-473) StringEscapeUtils.escapeJava () not escaping forward slash correctly.
Date Wed, 26 Nov 2008 16:50:44 GMT
StringEscapeUtils.escapeJava () not escaping forward slash correctly.
---------------------------------------------------------------------

                 Key: LANG-473
                 URL: https://issues.apache.org/jira/browse/LANG-473
             Project: Commons Lang
          Issue Type: Bug
    Affects Versions: 2.4
         Environment: Solaris and Windows
            Reporter: Vishal Kala


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.





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message