Skip to content

Wrong conversion of union #98

Description

@dhoehmann

this typedef

typedef union
{
char szFormula[NAO_LENGTH_FORMULA]; /* Formula /
char szURL[NAO_LENGTH_URL]; /
URL /
DBHANDLE hDb; /
Database /
NOTEHANDLE hNote; /
Note /
NOTELINK nlNoteLink; /
Link */
} NAO_ENTRY_RESOURCE;

gets this constructor:

/**
* @PARAM szFormula_or_szURL Formula

* C type : char[2048], or URL

* C type : char[512]
*/
public NAO_ENTRY_RESOURCE(byte szFormula_or_szURL[]) {
super();
if ((szFormula_or_szURL.length != this.szFormula_or_szURL.length))
throw new IllegalArgumentException("Wrong array size !");
this.szURL = this.szFormula = szFormula_or_szURL;
setType(byte[].class);
}

and that can't be compiled

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions