3838 * @requires vm.flagless
3939 * @requires vm.hasJFR
4040 * @library /test/lib /test/jdk
41- * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetDescription
41+ * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetContentType
4242 */
4343public class TestGetContentType {
4444
@@ -49,7 +49,7 @@ public static void main(String[] args) throws Exception {
4949 Asserts .assertNull (plain .getContentType ());
5050
5151 SettingDescriptor annotatedType = Events .getSetting (type , "annotatedType" );
52- Asserts .assertNull (annotatedType .getContentType (), Timestamp .class .getName ());
52+ Asserts .assertEquals (annotatedType .getContentType (), Timestamp .class .getName ());
5353
5454 SettingDescriptor newName = Events .getSetting (type , "newName" );
5555 Asserts .assertEquals (newName .getContentType (), Timespan .class .getName ());
@@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception {
5858 Asserts .assertNull (overridden .getContentType ());
5959
6060 SettingDescriptor protectedBase = Events .getSetting (type , "protectedBase" );
61- Asserts .assertEquals (protectedBase .getContentType (), Frequency .class );
61+ Asserts .assertEquals (protectedBase .getContentType (), Frequency .class . getName () );
6262
6363 SettingDescriptor publicBase = Events .getSetting (type , "publicBase" );
6464 Asserts .assertEquals (publicBase .getContentType (), Timestamp .class .getName ());
0 commit comments