mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-17 22:48:48 +00:00
8286473: Drop --enable-preview from Record related tests
Reviewed-by: alanb, jpai, mchung
This commit is contained in:
parent
63a1ec6e7c
commit
73c5e993e1
@ -1,24 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2020, 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
|
||||
# under the terms of the GNU General Public License version 2 only, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# version 2 for more details (a copy is included in the LICENSE file that
|
||||
# accompanied this code).
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License version
|
||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
#
|
||||
|
||||
enablePreview=true
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2022, 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
|
||||
@ -51,8 +51,8 @@ import org.testng.annotations.Test;
|
||||
* @test
|
||||
* @bug 8219014 8245121
|
||||
* @summary Ensure that a bulk put of a buffer into another is correct.
|
||||
* @compile --enable-preview -source ${jdk.version} BulkPutBuffer.java
|
||||
* @run testng/othervm --enable-preview BulkPutBuffer
|
||||
* @compile BulkPutBuffer.java
|
||||
* @run testng/othervm BulkPutBuffer
|
||||
*/
|
||||
public class BulkPutBuffer {
|
||||
static final long SEED = System.nanoTime();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2022, 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
|
||||
@ -26,8 +26,8 @@
|
||||
* @summary Ensure that sun.misc.Unsafe::objectFieldOffset and staticFieldOffset
|
||||
* throw UnsupportedOperationException on Field of a hidden or record class
|
||||
* @modules jdk.unsupported
|
||||
* @compile --enable-preview -source ${jdk.version} UnsafeFieldOffsets.java
|
||||
* @run testng/othervm --enable-preview UnsafeFieldOffsets
|
||||
* @compile UnsafeFieldOffsets.java
|
||||
* @run testng/othervm UnsafeFieldOffsets
|
||||
*/
|
||||
|
||||
import sun.misc.Unsafe;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user