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

j2se/src/solaris/classes/java/io/UnixFileSystem.java ignores file.separator property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • core-libs
    • None
    • generic
    • generic

      I'm trying to write a test to expose a problem in javac on Windows.

      The broken code in javac was something like:

        dirname + "/" + basename

      This was changed to:

        new File(dirname, basename).getPath();

      I'm then trying to verify the change by running a test program like this:

        java -Dfile.separator='!' TestProgram

      However, the File constructor uses UnixFileSystem.normalize which ignores
      the value of UnixFileSystem.slash. Consequently, my test fails.

            iris Iris Clark
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: