Print this page
NEX-3123 update gate build environment to [open]jdk7
Reviewed by: Gordon Ross <gwr@nexenta.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Jean McCormack <jean.mccormack@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>


   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.


  25  */
  26 
  27 import org.opensolaris.os.dtrace.*;
  28 
  29 /**
  30  * Regression test for the LocalConsumer state machine.  Calls Consumer
  31  * methods before and after open(), compile(), enable(), go(), stop(),
  32  * and close() to verify that the calls succeed as expected or fail with
  33  * the expected Java exception.
  34  */
  35 public class TestStateMachine {
  36     static Program program;
  37 
  38     static void
  39     exit(int status)
  40     {
  41         exit(status, null);
  42     }
  43 
  44     static void




   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  *
  26  * Copyright 2014 PALO, Richard. All rights reserved.
  27  */
  28 
  29 import org.opensolaris.os.dtrace.*;
  30 
  31 /**
  32  * Regression test for the LocalConsumer state machine.  Calls Consumer
  33  * methods before and after open(), compile(), enable(), go(), stop(),
  34  * and close() to verify that the calls succeed as expected or fail with
  35  * the expected Java exception.
  36  */
  37 public class TestStateMachine {
  38     static Program program;
  39 
  40     static void
  41     exit(int status)
  42     {
  43         exit(status, null);
  44     }
  45 
  46     static void