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

LOGGING APIs: FileHandler ignores the change of java.io.tmpdir

XMLWordPrintable

    • beta
    • generic
    • generic
    • Verified



      Name: szR10032 Date: 10/24/2000



      The nsk/logging/FileHandler/FileHandler_s/flhndl_s003 test shows
      that FileHandler class implementation does not use (for example, if filename
      pattern uses %t special component)
      new java.io.tmpdir property value if it is changed after
      the first FileHandler instance creation.
      It is explained by the static type of tmpDir variable
      used in FileHandler class implementation and by the organizing of
      tmpDir initialization only in the case of first invocation
      of init(String, int, int) method.

      On the other hand, the nsk/logging/FileHandler/FileHandler_s/flhndl_s004
      shows that implementation uses the changed user.home property
      if filename pattern uses the %u special component.
      In this case the implementation always uses
      immediate invocation of System.getProperty("user.home").

      Are there the significant reasons for different realizations
      of these features for FileHandler class?
      In any case, it would be better if these details of implementation
      will be specified by the spec.

      To reproduce the bug run
      doit.sh <jdk root directory>
      in
      /net/sqesvr/vsn/GammaBase/Bugs/<this bug number>:

      novo7% cd .../GammaBase/Bugs/<this bug number>
      novo7% sh -f doit.sh /export/ld25/java/dest/jdk1.4.0beta-b35/solaris
      ===========================================================
      Note: flhndl_s003.java uses or overrides a deprecated API.
      Note: Recompile with -deprecation for details.
      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b35)
      Java HotSpot(TM) Client VM (build 1.4beta-B35, mixed mode)
      FAILURE: (2) ./tmpdir2/flhndl_s003_L22 file is not found.
      ===========================================================
      Note: flhndl_s004.java uses or overrides a deprecated API.
      Note: Recompile with -deprecation for details.
      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b35)
      Java HotSpot(TM) Client VM (build 1.4beta-B35, mixed mode)
      ===========================================================
      novo7%


      ======================================================================

            ghamiltosunw Graham Hamilton (Inactive)
            zsssunw Zss Zss (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: