[vtkusers] Bug in vtk java wrapper

Ali - saveez at hotmail.com
Tue Oct 3 12:56:58 EDT 2006


Hi,

Running the following java code causes an error detected by hotspot virtual 
machine:

vtkPointSet obj = new vtkPointSet();
obj.GetMTime();

The reason is that vtkJavaGetPointerFromObject() in vtkJavaUtil returns NULL 
and the generated JNI wrapper does not validate the pointer. This error 
happens when the class and/or at least one of the cuper classes are 
abstract. I understand that the user does not need to create an abstract 
class, but, this bug is annoying.

_________________________________________________________________
Windows Live™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb




More information about the vtkusers mailing list