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

Ty Young youngty1997 at gmail.com
Mon Jan 31 10:24:27 UTC 2022


Thanks for this. It looks like Netbeans really doesn't like preview APIs 
and is going absolutely haywire with errors saying that I need to add 
--enable-preview when it's already added for both the compiler and 
runtime. It's so broken that it will no longer provide any suggestions 
to add a import for a class. It looks like Maven will compile it once I 
fix the hundred or so errors, but Netbeans is borked.


On 1/31/22 3:12 AM, Julia Boes wrote:
> 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