5 messages in net.java.dev.jna.usersRe: [jna-users] Seemingly correct map...
FromSent OnAttachments
Andrew PullinJan 15, 2009 11:25 pm 
Jorge Nieto-MadridJan 16, 2009 4:25 am 
Timothy WallJan 16, 2009 6:34 am 
Jorge Nieto-MadridJan 16, 2009 8:13 am 
Timothy WallJan 16, 2009 8:37 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] Seemingly correct mapping results in heap space errorActions...
From:Jorge Nieto-Madrid (jorg@gmail.com)
Date:Jan 16, 2009 8:13:36 am
List:net.java.dev.jna.users

Hi Timothy,

I downloaded JNA some months ago. Until now I have been usign eclipse to keep the project files up to date (I assume the most recent SVN version is 756). So I think(assume) I don't need to manually look at the JNA website for new releases. Last time I compiled the project I got the following warnings. Should I just ignore them or are you planing to fix them for a new release? (or were they already fixed and I have an old version that Eclipse doesn't want to update?)

Thanks so much!

1) The argument of type null should explicitly be cast to Class<?>[] for the invocation of the varargs method getMethod(String, Class<?>...) from type Class<capture-of ? extends DropTargetEvent>. It could alternatively be cast to Class<?> for a varargs invocation

Path: jna/src/com/sun/jna/examples/dnd/DragHandler.java @ line 165

2) The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation

Path: jna/src/com/sun/jna/examples/dnd/DragHandler.java @ line 165

Snipset:

public static Transferable getTransferable(DropTargetEvent e) { ......

e.getClass().getMethod("getTransferable", null).invoke(e,

null);// HERE ......

3) The method decode(String) from the type URLDecoder is deprecated

Path: jna/src/com/sun/jna/Native.java @ line 577

Snipset:

private static void loadNativeLibraryFromJar() { ......

lib = new File(URLDecoder.decode(url.getPath())); //HERE

.......

4) The method getPeer() from the type Component is deprecated Path: jna/src/com/sun/jna/examples/WindowUtils.java @ line 988

Snipset:

public void setWindowAlpha(final Window w, final float alpha) { ...

Object peer = w.getPeer(); //HERE