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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: 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.

            Assignee:
            Iris Clark
            Reporter:
            Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: