[9] RFR: 8168423: Test Task: Custom system class loader + security manager + malformed policy file = recursive initialization

Sibabrata Sahoo sibabrata.sahoo at oracle.com
Wed Jan 11 15:33:46 UTC 2017


Hi Adam/Sean,

 

This patch is waiting for your review.

 

Thanks,

Siba

 

From: Sibabrata Sahoo 
Sent: Friday, December 02, 2016 6:56 PM
To: Sean Mullan; security-dev at openjdk.java.net
Subject: [9] RFR: 8168423: Test Task: Custom system class loader + security manager + malformed policy file = recursive initialization

 

Hi, 

 

Please review the patch for,

 

JBS: https://bugs.openjdk.java.net/browse/JDK-8168423

Webrev: http://cr.openjdk.java.net/~ssahoo/8168423/webrev.00/

 

Description:

This webrev address all possible cases for Classloader with SecurityManager having combination of valid/malformed policy file. This Test is going to fail until JDK-8168075 get fixed. In the mean time, it can be used to verify the fix for JDK-8168075.

 

Here is the generic Logic behind generating all possible Test cases with different combination of policy file, class loader and module types.

for(policyFile : {"NO_POLICY", "VALID", "MALFORMED"}) {

    for(classLoader : {"SystemClassLoader", "CustomClassLoader"}){

       // It uses possible set of regular/modular jars to generate all possible Test cases in -cp and -module-path.

        for(clientModuletype : {"STRICT", "AUTO", "UNKNOWN"}) {

            for(classLoaderModuleType : {"STRICT", "AUTO", "UNKNOWN"}) {

                 Create and run java command line for each possible Test cases and verify result.

            }

        }

    }

}

 

Thanks,

Siba

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/security-dev/attachments/20170111/a3c77238/attachment.html>


More information about the security-dev mailing list