diff --git a/src/test/java/org/bridj/StructGenericsTest.java b/src/test/java/org/bridj/StructGenericsTest.java index c12d4be8..1539626e 100644 --- a/src/test/java/org/bridj/StructGenericsTest.java +++ b/src/test/java/org/bridj/StructGenericsTest.java @@ -15,7 +15,7 @@ public S getStruct() { } public T setStruct( S struct ) { - io.setNativeObjectField(struct, 0, struct); + io.setNativeObjectField(this, 0, struct); return (T)this; } }