test/jdk/java/lang/String/concat/WithSecurityManager.java
changeset 48397 ead47ddf5844
parent 48023 4b7462e3b552
child 54677 beca9f8524c1
equal deleted inserted replaced
48396:3c9975e46464 48397:ead47ddf5844
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    25 
    25 
    26 /**
    26 /**
    27  * @test
    27  * @test
    28  * @summary String concatenation fails with a custom SecurityManager that uses concatenation
    28  * @summary String concatenation fails with a custom SecurityManager that uses concatenation
    29  * @bug 8155090 8158851
    29  * @bug 8155090 8158851
       
    30  * @requires !vm.graal.enabled
    30  *
    31  *
    31  * @compile WithSecurityManager.java
    32  * @compile WithSecurityManager.java
    32  *
    33  *
    33  * @run main/othervm -Xverify:all WithSecurityManager
    34  * @run main/othervm -Xverify:all WithSecurityManager
    34  * @run main/othervm -Xverify:all -Djava.lang.invoke.stringConcat=BC_SB                  WithSecurityManager
    35  * @run main/othervm -Xverify:all -Djava.lang.invoke.stringConcat=BC_SB                  WithSecurityManager