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 20, 2008 1:40:34 pm
List:net.java.dev.jna.users

On Apr 20, 2008, at 2:02 PM, Peter Nabbefeld wrote:

Timothy Wall wrote:

...

public class StructUsbBus extends Structure implements Limits {

public static class ByReference extends StructUsbBus implements Structure.ByReference { }

Thank You for Your answer!

Is it correct, to use an "empty" definition here? I still get the same error ...

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.