java wrapper ignores VTK_LEGACY_REMOVE flag
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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