iterate-ch / rococoa

Rococoa allows you to call Objective-C code through Java classes and interfaces that you define.
GNU Lesser General Public License v3.0
74 stars 18 forks source link

java.lang.Error: Structure.getFieldOrder() on class org.rococoa.cocoa.foundation.NSPoint does not provide enough names [0] ([]) to match declared fields [2] ([x, y]) #27

Open yuexingliang opened 2 weeks ago

yuexingliang commented 2 weeks ago

java.lang.Error: Structure.getFieldOrder() on class org.rococoa.cocoa.foundation.NSPoint does not provide enough names [0] ([]) to match declared fields [2] ([x, y])

at com.sun.jna.Structure.getFields(Structure.java:1077)
at com.sun.jna.Structure.deriveLayout(Structure.java:1232)
at com.sun.jna.Structure.calculateSize(Structure.java:1159)
at com.sun.jna.Structure.allocateMemory(Structure.java:401)
at com.sun.jna.Structure.allocateMemory(Structure.java:397)
at com.sun.jna.Structure.newInstance(Structure.java:1873)
at com.sun.jna.Structure.newInstance(Structure.java:1857)
at com.sun.jna.Structure.size(Structure.java:1135)
at com.sun.jna.Native.getNativeSize(Native.java:1354)
at com.sun.jna.Structure.getNativeSize(Structure.java:2253)
at com.sun.jna.Structure.getNativeSize(Structure.java:2243)
at com.sun.jna.Structure.validateField(Structure.java:1209)
at com.sun.jna.Structure.validateFields(Structure.java:1222)
at com.sun.jna.Structure.<init>(Structure.java:200)
at com.sun.jna.Structure.<init>(Structure.java:193)
at com.sun.jna.Structure.<init>(Structure.java:180)
at com.sun.jna.Structure.<init>(Structure.java:172)
at org.rococoa.cocoa.foundation.NSRect.<init>(NSRect.java:39)
at org.rpa.engine.instruction.desktop.MacUtil$MacWindow.setFrame(MacUtil.java:157)
at org.rpa.engine.instruction.desktop.DesktopApp.setFrame(DesktopApp.java:232)
at instruction.desktop.RobotDesktopTest.testsetFrame(RobotDesktopTest.java:64)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)