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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • core-libs
    • None
    • In Review
    • windows

      The following code snippets should fail but it 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: