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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.2.0
    • 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() );
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: