Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-core-dev] Pathology, take two

The difference between Path.fromString() and Path.fromOSString() is really subtle. Can you provide some more examples of inputs and outputs of these functions (as would go into creating a testcase)?
 
Also some more guidance about which one to call would be helpful. For example, which would you use for paths entered by a user in a dialog? Paths that come from a user written config file? Paths that come from a message file? Paths hardcoded in a Java program? Output from URI.getPath()? URL.getPath()? File.getPath(), .getAbsolutePath(), and .getCanonicalPath()? Etc....
 

Back to the top