A DESCRIPTION OF THE PROBLEM :
The documentation on the method Paths.get(String, String...) is insufficient. If I call the method
Paths.get("/foo/bar/gus");
I expect to have an path that express a hierarchial folder structure in a deepness of 3. But since "/" might be an valid character in an folder name (in example in JFS). It might be one file-system element.
This is an request for clarification in the JavaDoc.
Since this information can offer runtime-system-details to the public, the clarification in the JavaDoc has security relevance.
The documentation on the method Paths.get(String, String...) is insufficient. If I call the method
Paths.get("/foo/bar/gus");
I expect to have an path that express a hierarchial folder structure in a deepness of 3. But since "/" might be an valid character in an folder name (in example in JFS). It might be one file-system element.
This is an request for clarification in the JavaDoc.
Since this information can offer runtime-system-details to the public, the clarification in the JavaDoc has security relevance.
- relates to
-
JDK-8194746 (fs) Add equivalents of Paths.get to Path interface
-
- Resolved
-