Skip to content

Commit 688c9d3

Browse files
committed
Add preview annotation to Struct/UnionLayout
1 parent 2bfb7d4 commit 688c9d3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/java.base/share/classes/java/lang/foreign/PaddingLayout.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@
2626
package java.lang.foreign;
2727

2828
import jdk.internal.foreign.layout.PaddingLayoutImpl;
29+
import jdk.internal.javac.PreviewFeature;
2930

3031
/**
3132
* A padding layout. A padding layout specifies the size of extra space which is typically not accessed by applications,
3233
* and is typically used for aligning member layouts around word boundaries.
3334
*
3435
* @implSpec
3536
* Implementing classes are immutable, thread-safe and <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>.
37+
*
38+
* @since 20
3639
*/
40+
@PreviewFeature(feature=PreviewFeature.Feature.FOREIGN)
3741
public sealed interface PaddingLayout extends MemoryLayout permits PaddingLayoutImpl {
3842

3943
/**

src/java.base/share/classes/java/lang/foreign/StructLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @implSpec
3535
* Implementing classes are immutable, thread-safe and <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>.
3636
*
37-
* @since 19
37+
* @since 20
3838
*/
3939
@PreviewFeature(feature=PreviewFeature.Feature.FOREIGN)
4040
public sealed interface StructLayout extends GroupLayout permits StructLayoutImpl {

src/java.base/share/classes/java/lang/foreign/UnionLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @implSpec
3535
* Implementing classes are immutable, thread-safe and <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>.
3636
*
37-
* @since 19
37+
* @since 20
3838
*/
3939
@PreviewFeature(feature=PreviewFeature.Feature.FOREIGN)
4040
public sealed interface UnionLayout extends GroupLayout permits UnionLayoutImpl {

0 commit comments

Comments
 (0)