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

security/infra/sun/security/ec/BCCurveTest.java failed with cannot access class sun.security.x509.X509CertInfo

XMLWordPrintable

        Test:
        <closed>/security/infra/sun/security/ec/BCCurveTest.java

        This is a Test bug. When the Test Run the Test java file with main() using ProcessTools, it doesn't use "--add-exports" for the necessary modules while it uses correctly during compilation.

        IMPROVEMENT: It would be nice to convert the Test using 2 java files for this Test to a single file.

        Log:
        Test Provider SunEC vs. another provider BC

        Common curves between two providers: [secp256r1, secp384r1, secp521r1]
        Generating Keys though Provider SunEC using curve 'secp256r1'
        ];
         stderr: [Exception in thread "main" java.lang.IllegalAccessError: class ECCurveWithBC (in unnamed module @0x60e89085) cannot access class sun.security.x509.X509CertInfo (in module java.base) because module java.base does not export sun.security.x509 to unnamed module @0x60e89085
        at ECCurveWithBC.generateCertificate(ECCurveWithBC.java:176)
        at ECCurveWithBC.test(ECCurveWithBC.java:109)
        at ECCurveWithBC.main(ECCurveWithBC.java:68)
        ]
         exitValue = 1

              ssahoo Sibabrata Sahoo (Inactive)
              ssahoo Sibabrata Sahoo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: