[foreign-preview] Integrated: 8280527: Move jdk.incubator.foreign to java.lang.foreign

Julia Boes jboes at openjdk.java.net
Mon Jan 31 09:12:53 UTC 2022


On Mon, 24 Jan 2022 16:34:34 GMT, Julia Boes <jboes at openjdk.org> wrote:

> To prepare for preview, this change removes the jdk.incubator.foreign module and moves the public classes to java.base/java.lang.foreign, implementation classes to java.base/jdk.internal.foreign respectively. 
> 
> While here, `SystemLookup` is replaced with the method `ClassLoader::findNative` and the methods in `MemoryHandles` are moved to `MethodHandles`. The `@PreviewFeature(feature=PreviewFeature.Feature.FOREIGN)` annotation and the `--enable-preview` flag are added were needed.

This pull request has now been integrated.

Changeset: 804f697f
Author:    Julia Boes <jboes at openjdk.org>
URL:       https://git.openjdk.java.net/panama-foreign/commit/804f697fac1e4856fabdf8e96a86855f3199a941
Stats:     9334 lines in 294 files changed: 3589 ins; 4365 del; 1380 mod

8280527: Move jdk.incubator.foreign to java.lang.foreign

Reviewed-by: jvernee, mcimadamore

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/633


More information about the panama-dev mailing list