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

java/net/spi/InetAddressResolverProvider/RuntimePermissionTest.java failed Expected ServiceConfigurationError not thrown

XMLWordPrintable

    • x86
    • os_x

      Test failure on external IMT ATR run

      The following provider will be used by current test:impl.SimpleResolverProviderImpl
      test RuntimePermissionTest.noRuntimePermission(): failure
      java.lang.AssertionError: Expected ServiceConfigurationError to be thrown, but nothing was thrown
      at org.testng.Assert.expectThrows(Assert.java:1730)
      at RuntimePermissionTest.testRuntimePermission(RuntimePermissionTest.java:64)
      at RuntimePermissionTest.noRuntimePermission(RuntimePermissionTest.java:51)

      ----------System.err:(40/2710)----------
      Jan 16, 2022 5:31:24 PM testlib.ResolutionRegistry <init>
      INFO: Creating ResolutionRegistry instance from file:/Users/administrator/Desktop/Tuong/open/test/jdk/java/net/spi/InetAddressResolverProvider/addresses.txt
      Jan 16, 2022 5:31:24 PM testlib.ResolutionRegistry parseDataFile
      INFO: Constructed addresses registry:
      javaTest.org: /1.2.3.4 /ca:fe:ba:be:0:0:0:1

      Jan 16, 2022 5:31:24 PM impl.SimpleResolverProviderImpl$1 lookupByName
      INFO: Looking-up addresses for '159-Monterey.local'. Lookup characteristics:111
      Jan 16, 2022 5:31:24 PM testlib.ResolutionRegistry lookupHost
      INFO: Looking-up '159-Monterey.local' address
      Jan 16, 2022 5:31:24 PM testlib.ResolutionRegistry lookupHost
      INFO: Registry doesn't contain addresses for '159-Monterey.local'
      Jan 16, 2022 5:31:25 PM RuntimePermissionTest$TestSecurityManager <init>
      INFO: inetAddressResolverProvider permission is not granted
      WARNING: A terminally deprecated method in java.lang.System has been called
      WARNING: System::setSecurityManager has been called by RuntimePermissionTest (file:/Users/administrator/Desktop/Tuong/results/JTwork/classes/java/net/spi/InetAddressResolverProvider/RuntimePermissionTest.d/)
      WARNING: Please consider reporting this to the maintainers of RuntimePermissionTest
      WARNING: System::setSecurityManager will be removed in a future release
      Jan 16, 2022 5:31:25 PM impl.SimpleResolverProviderImpl$1 lookupByName
      INFO: Looking-up addresses for 'javaTest.org'. Lookup characteristics:111
      Jan 16, 2022 5:31:25 PM testlib.ResolutionRegistry lookupHost
      INFO: Looking-up 'javaTest.org' address
      Jan 16, 2022 5:31:25 PM RuntimePermissionTest$TestSecurityManager checkPermission
      INFO: Checking RuntimePermission: ("java.lang.RuntimePermission" "setSecurityManager")
      Jan 16, 2022 5:31:25 PM RuntimePermissionTest$TestSecurityManager <init>
      INFO: inetAddressResolverProvider permission is granted
      Jan 16, 2022 5:31:25 PM RuntimePermissionTest$TestSecurityManager checkPermission
      INFO: Checking RuntimePermission: ("java.lang.RuntimePermission" "setSecurityManager")
      java.lang.Exception: failures: 1

            msheppar Mark Sheppard
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: