< prev index next >

test/jdk/jdk/jfr/api/metadata/annotations/TestTypesIdentical.java

Print this page
rev 51054 : imported patch 9000013-aixDisableJFR-requires.patch


  34 import jdk.jfr.Experimental;
  35 import jdk.jfr.Frequency;
  36 import jdk.jfr.Label;
  37 import jdk.jfr.MemoryAddress;
  38 import jdk.jfr.DataAmount;
  39 import jdk.jfr.MetadataDefinition;
  40 import jdk.jfr.Name;
  41 import jdk.jfr.Percentage;
  42 import jdk.jfr.Period;
  43 import jdk.jfr.Registered;
  44 import jdk.jfr.Relational;
  45 import jdk.jfr.StackTrace;
  46 import jdk.jfr.Threshold;
  47 import jdk.jfr.Timespan;
  48 import jdk.jfr.Timestamp;
  49 import jdk.jfr.TransitionFrom;
  50 import jdk.jfr.TransitionTo;
  51 import jdk.jfr.Unsigned;
  52 import jdk.test.lib.Asserts;
  53 
  54 /*
  55  * @test
  56  * @key jfr

  57  * @library /test/lib
  58  * @run main/othervm jdk.jfr.api.metadata.annotations.TestTypesIdentical
  59  */
  60 public class TestTypesIdentical {
  61 
  62     @MetadataDefinition
  63     @interface CustomAnnotation {
  64         String value();
  65     }
  66 
  67     private static Class<?>[] predefinedAnnotations = {
  68         Category.class, Enabled.class,  Frequency.class,  DataAmount.class,  Percentage.class,  StackTrace.class,  Timestamp.class,  Unsigned.class,
  69         ContentType.class,  Experimental.class,  Label.class, Registered.class, Period.class, Threshold.class,  TransitionFrom.class,
  70         Description.class, BooleanFlag.class,  MemoryAddress.class,  Name.class,  Relational.class, Timespan.class, TransitionTo.class
  71     };
  72 
  73     @SuppressWarnings("unchecked")
  74     public static void main(String[] args) throws Exception {
  75 
  76         for(Class<?> clz : predefinedAnnotations) {


  34 import jdk.jfr.Experimental;
  35 import jdk.jfr.Frequency;
  36 import jdk.jfr.Label;
  37 import jdk.jfr.MemoryAddress;
  38 import jdk.jfr.DataAmount;
  39 import jdk.jfr.MetadataDefinition;
  40 import jdk.jfr.Name;
  41 import jdk.jfr.Percentage;
  42 import jdk.jfr.Period;
  43 import jdk.jfr.Registered;
  44 import jdk.jfr.Relational;
  45 import jdk.jfr.StackTrace;
  46 import jdk.jfr.Threshold;
  47 import jdk.jfr.Timespan;
  48 import jdk.jfr.Timestamp;
  49 import jdk.jfr.TransitionFrom;
  50 import jdk.jfr.TransitionTo;
  51 import jdk.jfr.Unsigned;
  52 import jdk.test.lib.Asserts;
  53 
  54 /**
  55  * @test
  56  * @key jfr
  57  * @requires vm.hasJFR
  58  * @library /test/lib
  59  * @run main/othervm jdk.jfr.api.metadata.annotations.TestTypesIdentical
  60  */
  61 public class TestTypesIdentical {
  62 
  63     @MetadataDefinition
  64     @interface CustomAnnotation {
  65         String value();
  66     }
  67 
  68     private static Class<?>[] predefinedAnnotations = {
  69         Category.class, Enabled.class,  Frequency.class,  DataAmount.class,  Percentage.class,  StackTrace.class,  Timestamp.class,  Unsigned.class,
  70         ContentType.class,  Experimental.class,  Label.class, Registered.class, Period.class, Threshold.class,  TransitionFrom.class,
  71         Description.class, BooleanFlag.class,  MemoryAddress.class,  Name.class,  Relational.class, Timespan.class, TransitionTo.class
  72     };
  73 
  74     @SuppressWarnings("unchecked")
  75     public static void main(String[] args) throws Exception {
  76 
  77         for(Class<?> clz : predefinedAnnotations) {
< prev index next >