This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gstreamer-java don't work with GCJ


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]