MantisBT - VTK
View Issue Details
0008656VTK(No Category)public2009-03-03 08:472016-08-12 09:55
François Bertel 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0008656: java wrapper ignores VTK_LEGACY_REMOVE flag
vtkParseJava.c does not take into account the VTK_LEGACY_REMOVE flag when it generates the methods of a class.

A consequence of this is that if VTK_LEGACY_REMOVE, VTK_USE_PARALLEL and VTK_USE_MPI are turned on, vtkParseJava.c generates a line like:

private native int Initialize_4(vtkMPICommunicator id0,vtkMPIGroup id1);

whereas this method should not be created at all as vtkMPIGroup does not exist when VTK_LEGACY_REMOVE is on.

The consequence is the following compile error (and dozen of similar errors):

Scanning dependencies of target VTKJavaParallel
[ 80%] Generating ../../java/vtk/vtkBranchExtentTranslator.class

/.../vtk-build-all-debug/java/vtk/vtkMPICommunicator.java:47: cannot find symbol

symbol : class vtkMPIGroup
location: class vtk.vtkMPICommunicator
  private native int Initialize_4(vtkMPICommunicator id0,vtkMPIGroup id1);
                                                         ^

Here is a dashboard failing with this configuration:

http://www.cdash.org/CDash/viewBuildError.php?buildid=283462 [^]
No tags attached.
Issue History
2009-03-03 08:47François BertelNew Issue
2009-03-03 08:52François BertelNote Added: 0015509
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037059
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0015509)
François Bertel   
2009-03-03 08:52   
replace

"if VTK_LEGACY_REMOVE, VTK_USE_PARALLEL and VTK_USE_MPI are turned on"

by
"if VTK_WRAP_JAVA, VTK_LEGACY_REMOVE, VTK_USE_PARALLEL and VTK_USE_MPI are turned on"
(0037059)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.