Skip to content

Commit a8f1de5

Browse files
committed
8352879: TestPeriod.java and TestGetContentType.java run wrong test class
Backport-of: b9d7a75adee8a96cf47bbe73e3009102ceda9589
1 parent 285dc91 commit a8f1de5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @key jfr
3636
* @requires vm.hasJFR
3737
* @library /test/lib
38-
* @run main/othervm jdk.jfr.api.metadata.annotations.TestLabel
38+
* @run main/othervm jdk.jfr.api.metadata.annotations.TestPeriod
3939
*/
4040
public class TestPeriod {
4141

test/jdk/jdk/jfr/api/metadata/settingdescriptor/TestGetContentType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @key jfr
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
*/
4343
public 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

Comments
 (0)