Skip to content

Commit

Permalink
Remove debug, make note of the problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielperano committed Jan 12, 2024
1 parent fdf3434 commit bd3550b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/src/main/java/com/myworldvw/buoy/NativeMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.myworldvw.buoy.mapping.*;

import java.lang.foreign.*;
import java.lang.foreign.MemorySegment.Scope;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public FieldHandler(FieldDef model, Field field){
this.field = field;
}

// TODO - this doesn't work if this field references a struct value, since structs
// are not value layouts in Panama and the VarHandle can only access a value layout.
public VarHandle getHandle(MemoryLayout layout){
System.out.println(layout.name().orElse(""));
System.out.println(model.name());
return layout.varHandle(MemoryLayout.PathElement.groupElement(model.name()));
}

Expand Down

0 comments on commit bd3550b

Please sign in to comment.