RFR: JDK-8291974 PrivateCredentialPermission should not use local variable to enable debugging [v2]

Mark Powers mpowers at openjdk.org
Tue Oct 4 19:08:22 UTC 2022


On Tue, 4 Oct 2022 15:18:36 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Mark Powers has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   added test
>
> test/jdk/javax/security/auth/PrivateCredentialPermission/Serial2.java line 42:
> 
>> 40:      * before bug fix for JDK-8291974.
>> 41:      */
>> 42:     static String before = "rO0ABXNyAC9qYXZheC5zZWN1cml0eS5hdXRoLlByaXZhdGVDcmVkZW50aWFsUGVybWlzc2lvbklV3Hd7UH9MAgADWgAHdGVzdGluZ0wAD2NyZWRlbnRpYWxDbGFzc3QAEkxqYXZhL2xhbmcvU3RyaW5nO0wACnByaW5jaXBhbHN0AA9MamF2YS91dGlsL1NldDt4cgAYamF2YS5zZWN1cml0eS5QZXJtaXNzaW9uscbhPyhXUX4CAAFMAARuYW1lcQB+AAF4cHQAGWNyZWQxIHBjMSAicG4xIiBwYzIgInBuMiIAdAAFY3JlZDFw";
> 
> The line is a little too long. You can break it into multiple lines and use `Base64.getMimeDecoder()` to decode it.

Or use string concatenation, e.g. "xxx" + "yyy".

-------------

PR: https://git.openjdk.org/jdk/pull/10206



More information about the security-dev mailing list