nativelibs4java / BridJ

BridJ: blazing fast Java / C / C++ interop
https://code.google.com/archive/p/bridj/
Other
297 stars 77 forks source link

pointerToAddress(long) in Pointer has been deprecated #86

Closed cristiammercado closed 4 years ago

cristiammercado commented 8 years ago

Hi,

There is an example called TaskbarListDemo.java in this repo. When I try to compile in Netbeans with the JAR library downloaded from Maven, the method pointerToAddress(long) used in line 100 is deprecated.

What's is the correct method to use in that case? There are these options available (doesn't mark as deprecated):

public static <P> Pointer<P> pointerToAddress(long peer, PointerIO<P> io)
public static <P> Pointer<P> pointerToAddress(long peer, Class<P> targetClass, Pointer.Releaser releaser)
public static <P> Pointer<P> pointerToAddress(long peer, Type targetType, Pointer.Releaser releaser)
public static Pointer<?> pointerToAddress(long peer, long size, Pointer.Releaser releaser)
public static <P> Pointer<P> pointerToAddress(long peer, long size, PointerIO<P> io, Pointer.Releaser releaser)

Thanks a lot!

PD: Question on SO (link)