ffi_gen icon indicating copy to clipboard operation
ffi_gen copied to clipboard

java generator doesn't output struct member names

Open ghazel opened this issue 10 years ago • 0 comments

JNA struct members appear without names:

    public static class Blob extends Structure {
        public NativeLong ;
        public Pointer ;
    }

The code says:

        @fields.each do |field|
          writer.puts "public #{field[:type].java_jna_type} #{field[:symbol]};"
        end

I believe it should be something like:

        @fields.each do |field|
          writer.puts "public #{field[:type].java_jna_type} #{field[:name].raw};"
        end

ghazel avatar May 26 '15 00:05 ghazel