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

JCK: java.io.tmpdir system property value differs from solaris and windows value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Not an Issue
    • Affects Version/s: 1.3.1, 1.4.0, 1.4.2_02
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      generic, linux

      Description


          The system property 'java.io.tmpdir' gives the name of default temporary-file
      directory. Under solaris (jdk1.3.1-b08, jdk1.4.0-b40) and windows
      (jdk1.3.1-b08, jdk1.4.0-b40) value of this property ends with
      system-dependent default name-separator character. But under linux
      (jdk1.3.1-b08, jdk1.4.0-b40) the value does not contain trailing
      name-separator.

          JCK1.3a test api/java_io/File/OtherMethodsTests.html#createTempFile fails
      due to this problem on:
              * linux jdk1.3.1-b08
              * linux jdk1.4.0-b40

          The following sample code and output show the problem.
          
      ---------------------------- test.java -------------------------------
      class test {

          public static void main(String args[]) {
              System.out.println(System.getProperty("java.io.tmpdir"));
          }
      }
      --------------------------- linux output -----------------------------
      $ java -version
      java version "1.3.1beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1beta-b08)
      Java HotSpot(TM) Client VM (build 1.3.1beta-b08, mixed mode)
      $ java test
      /tmp
      -------------------------- solaris output ----------------------------
      $ java -version
      java version "1.3.1beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1beta-b08)
      Java HotSpot(TM) Client VM (build 1.3.1beta-b08, mixed mode)
      $ java test
      /var/tmp/
      -------------------------- windows output ----------------------------
      $ java -version
      java version "1.3.1beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1beta-b08)
      Java HotSpot(TM) Client VM (build 1.3.1beta-b08, mixed mode)
      $ java test
      C:\TEMP----------------------------------------------------------------------


      ###@###.### 2003-10-23

      Adding the Slash to /tmp/ under Linux doesn't do any harm, it allows however Solaris Java applications run unmodified under Linux. This is important for SAP.

      ###@###.### 2003-10-23

        Attachments

          Activity

            People

            Assignee:
            mr Mark Reinhold
            Reporter:
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: