On 11/22/2010 06:05 PM, Sim IJskes - QCG wrote:
On 11/22/2010 06:02 PM, Sim IJskes - QCG wrote:
Hmm, how can we be sure what a FilePermission string looks like on a
future system? It is a bug to pass a URL, but i'm back peddling on
throwing an exception. A warning maybe, or a logging statement?
Something that we can enable during testing, and will never cause
problems in production environments, was my line of thinking.
Stripping '*' and '-' from the end, and then new File(str).getPath()
will cause FileSystem.normalize(), would this check for illegal file
specification? FileSystem is package private so no direct access.
Gr. Sim