< prev index next >

test/hotspot/jtreg/runtime/JVMDoPrivileged/DoPrivRunAbstract.jasm

Print this page
rev 52360 : 8212605: Pure-Java implementation of AccessController.doPrivileged
rev 52361 : [mq]: webrev.2.incr


   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @summary Test that JVM_DoPrivilege throws java.lang.AbstractMethodError for an
  27  *          abstract run() method.
  28  * @bug 8183962
  29  * @compile DoPrivRunAbstract.jasm
  30  * @compile DoPrivRunAbstract$VoidPrivActRunAbstract.jasm
  31  * @run main DoPrivRunAbstract
  32  */
  33 
  34 
  35 // This jasm file was generated from Java code similar to the following, except
  36 // the VoidPrivActRunAbstract interface was removed and changed.  It's now in
  37 // file DoPrivRunAbstract$VoidPrivActRunAbstract.jasm.
  38 //
  39 // public class DoPrivRunAbstract {
  40 //
  41 //    interface VoidPrivActRunAbstract extends PrivilegedAction<Void> {
  42 //        void perform();
  43 //
  44 //        @Override
  45 //        default Void run() {
  46 //            perform();




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @summary Test that AccessController.doPrivileged throws java.lang.AbstractMethodError for an
  27  *          abstract run() method.
  28  * @bug 8183962
  29  * @compile DoPrivRunAbstract.jasm
  30  * @compile DoPrivRunAbstract$VoidPrivActRunAbstract.jasm
  31  * @run main DoPrivRunAbstract
  32  */
  33 
  34 
  35 // This jasm file was generated from Java code similar to the following, except
  36 // the VoidPrivActRunAbstract interface was removed and changed.  It's now in
  37 // file DoPrivRunAbstract$VoidPrivActRunAbstract.jasm.
  38 //
  39 // public class DoPrivRunAbstract {
  40 //
  41 //    interface VoidPrivActRunAbstract extends PrivilegedAction<Void> {
  42 //        void perform();
  43 //
  44 //        @Override
  45 //        default Void run() {
  46 //            perform();


< prev index next >