Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6358

[classlib][logging] With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 5.0M11
    • 5.0M12
    • Classlib
    • None
    • x86/redhat el5

    Description

      Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.

      class testInvalidParams {
      public static void main(String[] args) throws Exception
      {
      try

      { java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h"); System.err.println("failure: should throw null exception"); }

      catch (java.io.FileNotFoundException e) {
      }
      }
      }

      Running this test with DRL vm under root privilege produces:
      failure: should throw null exception

      Under non root user, FileNotFoundException is thrown, which seems desired behavior.

      Attachments

        Activity

          People

            tellison Tim Ellison
            kylecho Kyle Cho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: