12 messages in net.java.dev.jna.usersRe: [jna-users] Generics...
FromSent OnAttachments
Paul LoyJul 2, 2008 5:23 am 
Timothy WallJul 2, 2008 7:13 am 
Timothy WallJul 2, 2008 7:16 am 
Paul LoyJul 2, 2008 7:18 am 
Paul LoyAug 7, 2008 8:26 am 
Timothy WallAug 7, 2008 10:21 am 
Paul LoyAug 14, 2008 3:18 am 
Timothy WallAug 19, 2008 7:29 am 
Paul LoyAug 19, 2008 7:53 am 
Timothy WallAug 19, 2008 8:01 am 
Alex Lam S.L.Aug 19, 2008 10:03 am 
Wayne MeissnerAug 19, 2008 5:32 pm 
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] Generics...Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Aug 7, 2008 10:21:42 am
List:net.java.dev.jna.users

On Aug 7, 2008, at 11:26 AM, Paul Loy wrote:

Hi Timothy,

Except... because a 'vanilla' instance of the nativemapped class is created by Structure (well by NativeMappedConverter.getInstance(type)). This means that we do not have the generic type applied so it tries to map to Object rather than Integer (for example if GProperty<Integer> were used). I guess I don't understand why when the data type extends NativeMapped does it then create a new instance? Why not use the instance we now have?

Can you be more specific about what code you're referring to?