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

Jorn Vernee jvernee at openjdk.java.net
Fri Jan 28 17:35:46 UTC 2022


On Fri, 28 Jan 2022 13:26:13 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.
>
> Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 11 commits:
> 
>  - Merge foreign-preview
>  - fix copyright line
>  -  revert to static helper method for consistency
>  - refactor test helper method and some cleanup
>  - address PR comments
>  - remove leftover jdk.incubator files and fix some test config
>  - Merge branch 'foreign-preview' into foreign-preview-move-to-java-base
>  - Merge branch 'foreign-memaccess+abi' into foreign-preview-premerge
>  - remove patch file
>  - remove leftover jdk.incubator files
>  - ... and 1 more: https://git.openjdk.java.net/panama-foreign/compare/4dfd4caf...574804d6

Marked as reviewed by jvernee (Committer).

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

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


More information about the panama-dev mailing list