Build fail: interface MemoryAddressProxy not exported

Ty Young youngty1997 at gmail.com
Fri Mar 13 01:45:11 UTC 2020


On 3/12/20 8:06 PM, Maurizio Cimadamore wrote:
> Seems to work here... I don't get that warning.
>
> Also, it's a weird one, MemoryAddressImpl is not a class exported by 
> the jdk.incubator.foreign module, so I'm a bit confused.
>
> Anybody else can reproduce this?


Disregard. It was my screwup from wrongly editing module-info to export 
ForeignUnsafe, since Maven and Netbeans aren't playing well with 
arguments. The export for foreignunsafe used to be at the very bottom 
but now an export from internal foreign to jextract is.


Apologies.


>
> Maurizio
>
> On 12/03/2020 22:33, Ty Young wrote:
>> Hi,
>>
>>
>> Current foreign-jextract builds fail with:
>>
>>
>> /home/ty/Downloads/panama-foreign-foreign-jextract2/src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/MemoryAddressImpl.java:41: 
>> warning: [exports] interface MemoryAddressProxy in module java.base 
>> may not be visible to all clients that require this module
>> public final class MemoryAddressImpl implements MemoryAddress, 
>> MemoryAddressProxy {
>>
>>
>> MemoryAddressProxy isn't even used in public API besides VarHandle 
>> get() and set() methods(even then, it's not transparent) so I'm 
>> assuming this is being leaked in error.
>>


More information about the panama-dev mailing list