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

com/sun/jndi/dns/Test6991580.java failed with the java.lang.IllegalAccessError

    XMLWordPrintable

    Details

      Description

      Testsuite name: Awt Regression
      Test name(s): com/sun/jndi/dns/Test6991580.java
      Product(s) tested: JDK 9 b111
      OS/architecture: Mac10.10 x64/Jtreg4.2


      The exception:
          Exception in thread "main" java.lang.IllegalAccessError: class IPv6NameserverPlatformParsingTest (in unnamed module @0x2cb4c3ab) cannot access class com.sun.jndi.dns.DnsContextFactory (in module jdk.naming.dns) because module jdk.naming.dns does not export com.sun.jndi.dns to unnamed module @0x2cb4c3ab
      at IPv6NameserverPlatformParsingTest.main(IPv6NameserverPlatformParsingTest.java:46)

      Reproducible: Always
      Reproducible on machine: Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression:YES
      [If Regression] Regression introduced in release/build:JDK9b111 failed the same issue.
                                                                                          (JDK9b110 on the same OS:Passed)
      Test result on the last GAed release for this train:
      [if Fail] Test result on FCS:

      Is it a platform specific issue:NO(the same build on oel6.4-redhat-x64:Failed the same issue;
                                                         the same build on solaris11.3-x64:Failed the same issue;
                                                         the same build on solaris11.3-sparc:Failed the same issue.)
      [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing:
      [If new configuration testing] Issue specific to execution mode or OS/browser version:



      Case Instruction:
      This test should only be run on non-Windows systems.
      If your system doesn't meet this condition, press PASS.
      To run the test follow these instructions:
      1. Open a terminal window.
      2. Make sure you have, for example, the following snippet into your platform's /etc/resolv.conf:
      nameserver 127.0.0.1
      nameserver 2001:4860:4860::8888
      nameserver [::1]:5353
      nameserver 127.0.0.1:5353
      Modify the /etc/resolv.conf file if needed. Don't forget to save the original content of the file.
      3. Type "cd /private/var/root/regression/results/workDir/classes/com/sun/jndi/dns".
      4. Type "/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/java IPv6NameserverPlatformParsingTest".
      5. If you see
      "PASS: Found IPv6 address and DnsClient parsed it correctly."
      , press PASS else press FAIL.
      6. If you modified /etc/resolv.conf on the step #2, please, restore the original content of the file.
       
      Actual behavior:
      We do as the case description,for step5, the case failed with the java.lang.IllegalAccessError.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michaelm Michael McMahon
                Reporter:
                michaelw Michael Wang (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: