You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is converted to Java classes by JNAerator in the form:
publicclassmyUnionextendsUnion {
publicdouble[] data = newdouble[4];
publicfield1_structfield1;
publicstaticclassfield1_structextendsStructure {
publicfield1_unionfield1;
publicdoubles;
publicstaticclassfield1_unionextendsUnion {
publicfield1_structfield1;
publicfield2_structfield2;
publicstaticclassfield1_structextendsStructure {
/** C type : double[3] */...
The inner class field1_struct, which represents the inner anonymous struct, has the same name as the enclosing class, which represents the outer anonymous struct. JNAerator generates these names automatically in the absence of struct names in the native code.
This leads to the Java error The nested type field1_struct cannot hide an enclosing type.
An interim solution is manual modification of the generated Java files after running JNAerator.
The text was updated successfully, but these errors were encountered:
Issue description
A c union containing anonymous unions and structs is defined in a header file:
This is converted to Java classes by JNAerator in the form:
The inner class
field1_struct
, which represents the inner anonymous struct, has the same name as the enclosing class, which represents the outer anonymous struct. JNAerator generates these names automatically in the absence of struct names in the native code.This leads to the Java error
The nested type field1_struct cannot hide an enclosing type
.An interim solution is manual modification of the generated Java files after running JNAerator.
The text was updated successfully, but these errors were encountered: