No subject

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Apr 18 10:00:56 UTC 2024


Thanks for the report.

I've filed this: https://bugs.openjdk.org/browse/CODETOOLS-7903715

On 18/04/2024 01:54, Paulo Feodrippe wrote:
> Hi,
>
> I'm using Build 22-jextract+3-13 and, while I'm able to jextract the 
> flecs.c file in https://github.com/SanderMertens/flecs, it generates a 
> param with the same name as one of the original params (allocator).
>
> ./src-java/org/vybe/flecs_2.java:7946: error: variable allocator is 
> already defined in method 
> ecs_vec_copy(java.lang.foreign.SegmentAllocator,java.lang.foreign.MemorySegment,java.lang.foreign.MemorySegment,int)
>     public static MemorySegment ecs_vec_copy(SegmentAllocator 
> allocator, MemorySegment allocator, MemorySegment vec, int size) {
>                          ^
> ./src-java/org/vybe/flecs_2.java:7995: error: variable allocator is 
> already defined in method 
> ecs_vec_copy_shrink(java.lang.foreign.SegmentAllocator,java.lang.foreign.MemorySegment,java.lang.foreign.MemorySegment,int)
>     public static MemorySegment ecs_vec_copy_shrink(SegmentAllocator 
> allocator, MemorySegment allocator, MemorySegment vec, int size) {
>
> Thanks
>
> -- 
> Paulo Rafael Feodrippe,
> Desenvolvedor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20240418/53d12a68/attachment.htm>


More information about the jextract-dev mailing list