Closed Centaur closed 10 months ago
That seems to be fixed. Here's what I get with JavaCPP 1.5.10-SNAPSHOT:
@NoOffset public static class X extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public X(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public X(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public X position(long position) {
return (X)super.position(position);
}
@Override public X getPointer(long i) {
return new X((Pointer)this).offsetAddress(i);
}
public native int m(); public native X m(int setter);
public X() { super((Pointer)null); allocate(); }
private native void allocate();
}
'X(): m(0){}' line causes
ParserException: Unexpected token '('
Perhaps duplicate with #406