java.io.File.getAbsolutePath with null path does not return trailing slash

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.2.0
    • Component/s: core-libs
    • None
    • sparc
    • solaris_2.6

      The following code returns the current working directory with a trailing
      slash on JDK 1.1.6 but does not return a path with a trailing slash
      on 1.2 FCS.

      This functionality is used in the Spec benchmark application.

      import java.io.*;

      // Test of File Open
      class FileOpen {
              public static void main (String args[]) {

                  System.out.println( (new File("")).getAbsolutePath() );
          }
      }

            Assignee:
            Mark Reinhold
            Reporter:
            Bob Vandette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: