< prev index next >

test/compiler/oracle/MethodMatcherTest.java

Print this page




   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 MethodMatcherTest
  26  * @library /testlibrary /test/lib

  27  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  28  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  29  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI MethodMatcherTest
  30  * @summary Testing of compiler/MethodMatcher
  31  * @bug 8135068
  32  */
  33 
  34 import java.lang.reflect.Method;
  35 import java.util.ArrayList;
  36 
  37 import sun.hotspot.WhiteBox;
  38 
  39 public class MethodMatcherTest {
  40 
  41     /** Instance of WhiteBox */
  42     protected static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  43 
  44     Method helper;
  45     Method getDate;
  46     Method inner;




   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 MethodMatcherTest
  26  * @library /testlibrary /test/lib
  27  * @build sun.hotspot.WhiteBox
  28  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  29  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  30  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI MethodMatcherTest
  31  * @summary Testing of compiler/MethodMatcher
  32  * @bug 8135068
  33  */
  34 
  35 import java.lang.reflect.Method;
  36 import java.util.ArrayList;
  37 
  38 import sun.hotspot.WhiteBox;
  39 
  40 public class MethodMatcherTest {
  41 
  42     /** Instance of WhiteBox */
  43     protected static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  44 
  45     Method helper;
  46     Method getDate;
  47     Method inner;


< prev index next >