Skip to content

Commit f5b2f08

Browse files
author
Harold Seigel
committed
8257836: Add additional test cases to TestSyncOnValueBasedClassEvent.java
Reviewed-by: lfoltan, pchilanomate
1 parent 27dd88b commit f5b2f08

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/jdk/jdk/jfr/event/runtime/TestSyncOnValueBasedClassEvent.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,7 +43,8 @@
4343
public class TestSyncOnValueBasedClassEvent {
4444
static final String EVENT_NAME = EventNames.SyncOnValueBasedClass;
4545
static String[] classesWanted = {"java/lang/Character", "java/lang/Boolean", "java/lang/Byte", "java/lang/Short",
46-
"java/lang/Integer", "java/lang/Long", "java/lang/Float", "java/lang/Double"};
46+
"java/lang/Integer", "java/lang/Long", "java/lang/Float", "java/lang/Double",
47+
"java/time/Duration", "java/util/OptionalInt", "java/lang/Runtime$Version"};
4748
static List<Object> testObjects = new ArrayList<Object>();
4849
static Integer counter = 0;
4950

@@ -56,6 +57,9 @@ private static void initTestObjects() {
5657
testObjects.add(Long.valueOf(0x4000000000000000L));
5758
testObjects.add(Float.valueOf(1.20f));
5859
testObjects.add(Double.valueOf(1.2345));
60+
testObjects.add(Duration.ofMillis(5));
61+
testObjects.add(OptionalInt.of(10));
62+
testObjects.add(Runtime.version());
5963
}
6064

6165
public static void main(String[] args) throws Throwable {

0 commit comments

Comments
 (0)