1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
43
43
public class TestSyncOnValueBasedClassEvent {
44
44
static final String EVENT_NAME = EventNames .SyncOnValueBasedClass ;
45
45
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" };
47
48
static List <Object > testObjects = new ArrayList <Object >();
48
49
static Integer counter = 0 ;
49
50
@@ -56,6 +57,9 @@ private static void initTestObjects() {
56
57
testObjects .add (Long .valueOf (0x4000000000000000L ));
57
58
testObjects .add (Float .valueOf (1.20f ));
58
59
testObjects .add (Double .valueOf (1.2345 ));
60
+ testObjects .add (Duration .ofMillis (5 ));
61
+ testObjects .add (OptionalInt .of (10 ));
62
+ testObjects .add (Runtime .version ());
59
63
}
60
64
61
65
public static void main (String [] args ) throws Throwable {
0 commit comments