Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8354450

A File should be invalid if an element of its name sequence ends with a space

XMLWordPrintable

    • In Review
    • windows

      The following code snippets should fail but do not:

      1. Trailing space in a file name

      File f = new File("Something ");
      String s = f.getCanonicalPath();

      2. Trailing space in a directory name

      File f = new File("foo\\bar \\gus");
      String s = f.getCanonicalPath();

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: