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

Julia Boes jboes at openjdk.java.net
Wed Jan 26 14:57:00 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 incrementally with one additional commit since the last revision:

  address PR comments

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

Changes:
  - all: https://git.openjdk.java.net/panama-foreign/pull/633/files
  - new: https://git.openjdk.java.net/panama-foreign/pull/633/files/e2de4ece..94f38723

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=633&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=633&range=00-01

  Stats: 379 lines in 26 files changed: 270 ins; 64 del; 45 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