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

Julia Boes jboes at openjdk.java.net
Fri Jan 28 13:26:13 UTC 2022


> 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

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

Changes: https://git.openjdk.java.net/panama-foreign/pull/633/files
 Webrev: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=633&range=05
  Stats: 9334 lines in 294 files changed: 3589 ins; 4365 del; 1380 mod
  Patch: https://git.openjdk.java.net/panama-foreign/pull/633.diff
  Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/633/head:pull/633

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


More information about the panama-dev mailing list