9 messages in net.java.dev.jna.usersRe: [jna-users] Re: Structure ... ha...
FromSent OnAttachments
Peter NabbefeldApr 20, 2008 3:33 am 
Timothy WallApr 20, 2008 4:52 am 
Peter NabbefeldApr 20, 2008 11:01 am 
Timothy WallApr 20, 2008 1:40 pm 
Peter NabbefeldApr 20, 2008 1:42 pm 
Timothy WallApr 20, 2008 2:11 pm 
Peter NabbefeldApr 20, 2008 10:38 pm 
Peter NabbefeldApr 20, 2008 10:38 pm 
Timothy WallApr 23, 2008 6:12 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Re: Structure ... has unknown sizeActions...
From:Timothy Wall (twal@dev.java.net)
Date:Apr 23, 2008 6:12:04 am
List:net.java.dev.jna.users

On Apr 21, 2008, at 1:38 AM, Peter Nabbefeld wrote:

The "empty" definition simply means that it has the exact same definition as StructUsbBus, but should be treated as a pointer to struct within a Structure definition or an array. I would expect IllegalArgumentException to be thrown when an unsupported field type is encountered, rather than complaining about being unable to calculate the size.

Thank You - I've looked into the source code - You're right: It's just a misleading message. Could You probably correct it, probably saying which filed or type is incorrect?

I ran some tests against the most recent SVN build, and the message correctly identifies the unsupported field class. You must have been using an older version.