Details
-
Type: Bug
-
Status: Closed
-
Priority: Default
-
Resolution: Fixed
-
Affects Version/s: 1.0.3
-
Fix Version/s: 1.1.0
-
Component/s: None
-
Labels:None
-
Environment:JDK 1.5
Description
readFromURL() tries the passed value as a file before it tries it as a resource. If there is a Java security policy enabled that restricts access to the file system, new FileInputStream() may throw AccessControlException, as opposed to the FileNotFoundException that is caught.
As a workaround, we converted the resource name to a URL before calling the method. (URL is tried before file.)