Commits

Anonymous committed 98896f8

index is zero-based, but length is one-based

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1974e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/test/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderTest.java

         int startIndex = fullPath.indexOf(":file:/");
         int endIndex = fullPath.indexOf("!/");
 
-        String jar = fullPath.substring(startIndex + ":file:/".length(), endIndex).replaceAll("%20", " ");
+        String jar = fullPath.substring(startIndex + (":file:/".length() -1 ), endIndex).replaceAll("%20", " ");
 
         File file = new File(jar);
-
+        
         assertTrue("File [" + file + "] doesn't exist!", file.exists());
         file.setLastModified(System.currentTimeMillis());