Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8257836: Add additional test cases to TestSyncOnValueBasedClassEvent.…
…java

Reviewed-by: lfoltan, pchilanomate
  • Loading branch information
Harold Seigel committed Apr 14, 2021
1 parent 27dd88b commit f5b2f08
Showing 1 changed file with 6 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -43,7 +43,8 @@
public class TestSyncOnValueBasedClassEvent {
static final String EVENT_NAME = EventNames.SyncOnValueBasedClass;
static String[] classesWanted = {"java/lang/Character", "java/lang/Boolean", "java/lang/Byte", "java/lang/Short",
"java/lang/Integer", "java/lang/Long", "java/lang/Float", "java/lang/Double"};
"java/lang/Integer", "java/lang/Long", "java/lang/Float", "java/lang/Double",
"java/time/Duration", "java/util/OptionalInt", "java/lang/Runtime$Version"};
static List<Object> testObjects = new ArrayList<Object>();
static Integer counter = 0;

Expand All @@ -56,6 +57,9 @@ private static void initTestObjects() {
testObjects.add(Long.valueOf(0x4000000000000000L));
testObjects.add(Float.valueOf(1.20f));
testObjects.add(Double.valueOf(1.2345));
testObjects.add(Duration.ofMillis(5));
testObjects.add(OptionalInt.of(10));
testObjects.add(Runtime.version());
}

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

1 comment on commit f5b2f08

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.