Skip to content

Fix vtkWrapJava build error for templated methods

David Gobbi requested to merge dgobbi/vtk:java-fixes into master

The wrappers are unable to wrap templated methods, so exclude them in vtkWrapJava and vtkParseJava. Specifically, this change is needed in order to wrap the vtkCellMetadata class, which has the following templated method:

template <typename Subclass> static bool RegisterType();

which caused the following error:

Common/DataModel/vtkCellMetadata.h:69:15:
    note:   template argument deduction/substitution failed:
Wrapping/Java/CMakeFiles/vtkCommonDataModelJava/vtkCellMetadataJava.cxx:80:28:
    note:   couldn’t deduce template parameter ‘Subclass’
   80 |   temp20 = op->RegisterType();
      |            ~~~~~~~~~~~~~~~~^~
Edited by David Gobbi

Merge request reports