Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes to allow StructureFieldOrderTest to run on linux. Still needs fi... #187

Merged
merged 4 commits into from
Jan 25, 2013
Merged

changes to allow StructureFieldOrderTest to run on linux. Still needs fi... #187

merged 4 commits into from
Jan 25, 2013

Conversation

bhamail
Copy link
Contributor

@bhamail bhamail commented Jan 25, 2013

...xes to platform build.xml to allow this to run under linux AND fixes are needed for X11 Structure.getFieldOrder() methods:

java.lang.RuntimeException: Some Structure sub types (7) have problems with getFieldOrder(): 
com.sun.jna.platform.unix.X11$XGravityEvent.getFieldOrder() [[type, serial, send_event, display, window, x, y]] does not include declared field: event; 
com.sun.jna.platform.unix.X11$XReparentEvent.getFieldOrder() [[type, serial, send_event, display, window, x, y, override_redirect]] does not include declared field: event; 
com.sun.jna.platform.unix.X11$XConfigureEvent.getFieldOrder() [[type, serial, send_event, display, window, x, y, width, height, border_width, above, override_redirect]] does not include declared field: event; 
com.sun.jna.platform.unix.X11$XMapRequestEvent.getFieldOrder() [[type, serial, send_event, display, window]] does not include declared field: parent; 
com.sun.jna.platform.unix.X11$XConfigureRequestEvent.getFieldOrder() [[type, serial, send_event, display, window, x, y, width, height, above, detail, value_mask]] does not include declared field: parent; 
com.sun.jna.platform.unix.X11$XMapEvent.getFieldOrder() [[type, serial, send_event, display, window, override_redirect]] does not include declared field: event; 
com.sun.jna.platform.unix.X11$XUnmapEvent.getFieldOrder() [[type, serial, send_event, display, window, from_configure]] does not include declared field: event; 

    at com.sun.jna.StructureFieldOrderInspector.batchCheckStructureGetFieldOrder(StructureFieldOrderInspector.java:55)
    at com.sun.jna.platform.StructureFieldOrderTest.testMethodGetFieldOrder(StructureFieldOrderTest.java:43)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:139)
    at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

bhamail added a commit that referenced this pull request Jan 25, 2013
Test runs under linux and Structure fixes all pass, so I will commit this. build.xml changes still need cleanup. Please holler with any other suggestions.
@bhamail bhamail merged commit 3d051ec into java-native-access:master Jan 25, 2013
mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
Motivation:

We only need to scheduel a new timeout if the timeout amount is smaller than the timeout before

Modifications:

Chagne code to only schedule timeout if needed to reduce overhead

Result:

Less overhead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant