gstreamer-java don't work with GCJ
Tom Tromey
tromey@redhat.com
Tue Aug 14 06:52:00 GMT 2007
Andrew> The javadoc for Class.getFields() says "The elements in the array
Andrew> returned are not sorted and are not in any particular order", but JNA
Andrew> needs them to be in the order in which they were declared.
We do store the fields in order. The bug here is that in
Class.internalGetFields we put them into a Set and then later turn
that set into an array.
I think the simplest fix is to use a LinkedHashSet (or TreeSet I
suppose) instead of a HashSet here. internalGetFields looks quite
inefficient. It could be improved in other ways.
Andrew> JNA looks like great technology, and it would be very cool to get it
Andrew> working on gcj. I'm not sure how to fix his problem, though. Paging
Andrew> Tom Tromey...
Yeah, this does look cool. It is similar to what I was attempting
with GDirect, except actually complete. :-)
Tom
More information about the Java
mailing list