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

[classlib][prefs] Classlib test org.apache.harmony.prefs.tests.java.util.prefs.PreferencesTest.testSystemNodeForPackage() fails

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The test fails for me on Windows on both j9 and drlvm with the following assertion:

      ant -Dbuild.module=prefs -Dtest.case=PreferencesTest test

      testSystemNodeForPackage Error N/A
      (J9)
      java.lang.SecurityException at java.util.prefs.RegistryPreferencesImpl.childSpi(RegistryPreferencesImpl.java:116) at java.util.prefs.AbstractPreferences.getNodeFromBackend(AbstractPreferences.java:645) at java.util.prefs.AbstractPreferences.nodeImpl(AbstractPreferences.java:626) at java.util.prefs.AbstractPreferences.node(AbstractPreferences.java:597) at java.util.prefs.Preferences.systemNodeForPackage(Preferences.java:767) at org.apache.harmony.prefs.tests.java.util.prefs.PreferencesTest.testSystemNodeForPackage(PreferencesTest.java:62) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)

      (drlvm)
      java.lang.SecurityException at java.util.prefs.RegistryPreferencesImpl.childSpi(RegistryPreferencesImpl.java:116) at java.util.prefs.AbstractPreferences.getNodeFromBackend(AbstractPreferences.java:644) at java.util.prefs.AbstractPreferences.nodeImpl(AbstractPreferences.java:625) at java.util.prefs.AbstractPreferences.node(AbstractPreferences.java:595) at java.util.prefs.Preferences.systemNodeForPackage(Preferences.java:767) at org.apache.harmony.prefs.tests.java.util.prefs.PreferencesTest.testSystemNodeForPackage(PreferencesTest.java:62) at java.lang.reflect.VMReflection.invokeMethod(Native Method)

        Attachments

        1. fixFor_getNode.patch
          0.7 kB
          Stepan Mishura
        2. H-1751_PreferencesTest_updated.patch
          1 kB
          Elena Semukhina
        3. Harmony-1751.patch
          3 kB
          Ilya Okomin
        4. PreferencesTest.patch
          2 kB
          Elena Semukhina
        5. TestPref.java
          0.2 kB
          Elena Semukhina

          Activity

            People

            • Assignee:
              smm Stepan Mishura
              Reporter:
              elena Elena Semukhina
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: