< prev index next >

test/jdk/jdk/jfr/api/metadata/valuedescriptor/TestValueDescriptorContentType.java

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


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.api.metadata.valuedescriptor;
  27 
  28 import java.lang.annotation.ElementType;
  29 import java.lang.annotation.Retention;
  30 import java.lang.annotation.RetentionPolicy;
  31 import java.lang.annotation.Target;
  32 
  33 import jdk.jfr.ContentType;
  34 import jdk.jfr.Event;
  35 import jdk.jfr.EventType;
  36 import jdk.jfr.MetadataDefinition;
  37 import jdk.jfr.ValueDescriptor;
  38 import jdk.test.lib.Asserts;
  39 
  40 /*
  41  * @test
  42  * @summary Test ValueDescriptor.getContentType()
  43  * @key jfr

  44  * @library /test/lib
  45  * @run main/othervm jdk.jfr.api.metadata.valuedescriptor.TestValueDescriptorContentType
  46  */
  47 public class TestValueDescriptorContentType {
  48 
  49     @MetadataDefinition
  50     @ContentType
  51     @Retention(RetentionPolicy.RUNTIME)
  52     @Target({ ElementType.FIELD, ElementType.TYPE, ElementType.METHOD })
  53     static public @interface Hawaiian {
  54     }
  55 
  56     @MetadataDefinition
  57     @Retention(RetentionPolicy.RUNTIME)
  58     @Target({ ElementType.FIELD, ElementType.TYPE })
  59     static public @interface NotContentType {
  60     }
  61 
  62     @SuppressWarnings("unused")
  63     private static class AlohaEvent extends Event {




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.api.metadata.valuedescriptor;
  27 
  28 import java.lang.annotation.ElementType;
  29 import java.lang.annotation.Retention;
  30 import java.lang.annotation.RetentionPolicy;
  31 import java.lang.annotation.Target;
  32 
  33 import jdk.jfr.ContentType;
  34 import jdk.jfr.Event;
  35 import jdk.jfr.EventType;
  36 import jdk.jfr.MetadataDefinition;
  37 import jdk.jfr.ValueDescriptor;
  38 import jdk.test.lib.Asserts;
  39 
  40 /**
  41  * @test
  42  * @summary Test ValueDescriptor.getContentType()
  43  * @key jfr
  44  * @requires vm.hasJFR
  45  * @library /test/lib
  46  * @run main/othervm jdk.jfr.api.metadata.valuedescriptor.TestValueDescriptorContentType
  47  */
  48 public class TestValueDescriptorContentType {
  49 
  50     @MetadataDefinition
  51     @ContentType
  52     @Retention(RetentionPolicy.RUNTIME)
  53     @Target({ ElementType.FIELD, ElementType.TYPE, ElementType.METHOD })
  54     static public @interface Hawaiian {
  55     }
  56 
  57     @MetadataDefinition
  58     @Retention(RetentionPolicy.RUNTIME)
  59     @Target({ ElementType.FIELD, ElementType.TYPE })
  60     static public @interface NotContentType {
  61     }
  62 
  63     @SuppressWarnings("unused")
  64     private static class AlohaEvent extends Event {


< prev index next >