Java Code Examples for jdk.jfr.internal.Type#getTypeId()

The following examples show how to use jdk.jfr.internal.Type#getTypeId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestClassId.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void assertClassIds() {
    long doubleClassId = Type.getTypeId(Double.class);
    assertGreaterThan(doubleClassId, 0L, "Class id must be greater than 0");

    long floatClassId = Type.getTypeId(Float.class);
    assertNE(doubleClassId, floatClassId, "Different classes must have different class ids");
}
 
Example 2
Source File: TestClassId.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static void assertClassIds() {
    long doubleClassId = Type.getTypeId(Double.class);
    assertGreaterThan(doubleClassId, 0L, "Class id must be greater than 0");

    long floatClassId = Type.getTypeId(Float.class);
    assertNE(doubleClassId, floatClassId, "Different classes must have different class ids");
}
 
Example 3
Source File: TestClassId.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static void assertClassIds() {
    long doubleClassId = Type.getTypeId(Double.class);
    assertGreaterThan(doubleClassId, 0L, "Class id must be greater than 0");

    long floatClassId = Type.getTypeId(Float.class);
    assertNE(doubleClassId, floatClassId, "Different classes must have different class ids");
}