hotspot/test/runtime/Unsafe/GetField.java
changeset 40631 ed82623d7831
parent 38152 80e5da81fb2c
child 40855 3c4c913195e3
equal deleted inserted replaced
40629:514bf0744294 40631:ed82623d7831
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @summary Verifies behaviour of Unsafe.getField
    26  * @summary Verifies behaviour of Unsafe.getField
    27  * @library /testlibrary
    27  * @library /test/lib
    28  * @modules java.base/jdk.internal.misc
    28  * @modules java.base/jdk.internal.misc
    29  *          java.management
    29  *          java.management
    30  * @run main GetField
    30  * @run main GetField
    31  */
    31  */
    32 
    32 
    33 import jdk.test.lib.*;
    33 import jdk.test.lib.Utils;
    34 import jdk.internal.misc.Unsafe;
    34 import jdk.internal.misc.Unsafe;
    35 import java.lang.reflect.*;
    35 import java.lang.reflect.*;
    36 import static jdk.test.lib.Asserts.*;
    36 import static jdk.test.lib.Asserts.*;
    37 
    37 
    38 public class GetField {
    38 public class GetField {