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

3.5.0: win32.ShellAPI$SHFILEOPSTRUCT: java.lang.AbstractMethodError: com.sun.jna.Structure.getFieldOrder()Ljava/util/List; #151

Closed
rednoah opened this issue Oct 25, 2012 · 3 comments

Comments

@rednoah
Copy link
Contributor

rednoah commented Oct 25, 2012

Hi,

I tried 3.5.0 jna with the latest platform jar and now win32 ShellAPI FileOp stuff is broken. Maybe the platform stuff hasn't been updated for 3.5.0. Latest platform jar with JNA 3.4.1 works perfectly fine. Anyway, not much of an issue for me that way, just a heads up. ;)

Stacktrace:

"Caused by: java.lang.AbstractMethodError: com.sun.jna.Structure.getFieldOrder()Ljava/util/List;
    at com.sun.jna.Structure.fieldOrder(Structure.java:831)
    at com.sun.jna.Structure.getFields(Structure.java:857)
    at com.sun.jna.Structure.deriveLayout(Structure.java:983)
    at com.sun.jna.Structure.calculateSize(Structure.java:908)
    at com.sun.jna.Structure.calculateSize(Structure.java:896)
    at com.sun.jna.Structure.allocateMemory(Structure.java:357)
    at com.sun.jna.Structure.<init>(Structure.java:191)
    at com.sun.jna.Structure.<init>(Structure.java:180)
    at com.sun.jna.Structure.<init>(Structure.java:167)
    at com.sun.jna.Structure.<init>(Structure.java:159)
    at com.sun.jna.platform.win32.ShellAPI$SHFILEOPSTRUCT.<init>(ShellAPI.java:62)
@dblock
Copy link
Member

dblock commented Oct 27, 2012

The platform.jar in the distribution is old. We'll fix this ASAP. In the meantime you can get platform.jar from the maven.

@rednoah
Copy link
Contributor Author

rednoah commented Oct 27, 2012

Thanks alot! The platform-3.5 from maven works perfectly!

@twall
Copy link
Contributor

twall commented Nov 28, 2012

maven distribution and point release updated

@twall twall closed this as completed Nov 28, 2012
mstyura pushed a commit to mstyura/jna that referenced this issue Sep 9, 2024
Motivation:

We need to use -std=c99 to be able to define the int as part of the for loop.

Modification:

Add -std=c99

Result:

Compiles again
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

No branches or pull requests

3 participants