File.separator used in a regular expression
-------------------------------------------
Key: ISPN-342
URL:
https://jira.jboss.org/jira/browse/ISPN-342
Project: Infinispan
Issue Type: Bug
Affects Versions: 4.0.0.CR4
Reporter: Sanne Grinovero
Assignee: Manik Surtani
Priority: Critical
Fix For: 4.0.0.GA
In class org.infinispan.util.ClassFinder , method toClassName(String fileName) is using
File.separator in a regular expression; on Windows this is going to be given the value
"\" which is an escape character in a regular expression.
(found by findbugs, apparently nobody here is testing on Windows)
Findbugs suggest to replace it with
File.separatorChar=='\\' ? "\\\\" : File.separator
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira