|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

In newer versions of JNA, the com.sun.jna.Structure class has a new abstract method getFieldOrder().
Third party code which extends com.jna.Structure must define this method, otherwise it will not
compile against JNA 4.1.0.
See:
http://twall.github.io/jna/4.1.0/com/sun/jna/Structure.html#getFieldOrder%28%29
protected abstract java.util.List getFieldOrder()
Return this Structure's field names in their proper order. For example,
protected List getFieldOrder() {
return Arrays.asList(new String[] { ... });
}
IMPORTANT When deriving from an existing Structure subclass, ensure that you augment the list provided by the superclass, e.g.
protected List getFieldOrder() {
List fields = new ArrayList(super.getFieldOrder());
fields.addAll(Arrays.asList(new String[] { ... }));
return fields;
}
Field order must be explicitly indicated, since the field order as returned by Class.getFields() is not guaranteed to be predictable.