hzzc1987 / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

bad conversion of struct members #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
the following structure 
struct SYSTEMTIME {
   char name[16];
};

is converted to 
public static class SYSTEMTIME extends com.sun.jna.Structure
    {
        public static class ByReference extends SYSTEMTIME implements 
com.sun.jna.Structure.ByReference {}

        public final com.sun.jna.ptr.ByteByReference name = new byte[16];

    }

Original issue reported on code.google.com by olivier.chafik@gmail.com on 17 Feb 2009 at 8:36

GoogleCodeExporter commented 8 years ago
Now gets transformed to 

public static class SYSTEMTIME extends com.sun.jna.Structure {
        public static class ByReference extends SYSTEMTIME implements 
com.sun.jna.Structure.ByReference {};

        public static final class ByValue extends SYSTEMTIME implements 
com.sun.jna.Structure.ByValue {};

        public final byte[] name = new byte[(16)];
    };

Original comment by olivier.chafik@gmail.com on 19 Feb 2009 at 7:27

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 19 Feb 2009 at 10:14

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 19 Feb 2009 at 10:16