Java wrappers write empty sources for unwrappable classes
So in trying to fix #17748, I'm trying to move to CMake's Java support so I can just export the target that way. However, I'm running into this:
% ninja Wrapping/Java/CMakeFiles/vtkjava.dir/vtk/vtkSparseArray.class
[0-1->1/1@4.4] Building Java object Wrapping/Java/CMakeFiles/vtkjava.dir/vtk/vtkSparseArray.class
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
% find -name vtkSparseArray.class
% cat Wrapping/Java/vtk/vtkSparseArray.java
%
So we have empty files not making output .class
files. This causes perpetual rebuilds. Would making a dummy vtkSparseArray
here be sufficient?
class vtkSparseArray {
}
I don't think we can avoid at least making the command to generate the source or adding that source to the library since we'd need to know the source is unwrappable during configure time. Thoughts?