bytedeco / javacpp

The missing bridge between Java and native C++
Other
4.46k stars 581 forks source link

Add annotations from info on default constructor #699

Closed HGuillemet closed 1 year ago

HGuillemet commented 1 year ago

When an info defines an annotation on a constructor, it's applied to the allocate() native method. However, this works only if the C++ headers defines an explicit constructor. The info is ignored for default constructors.

This PR fixes that.

No changes in existing presets but in Pytorch: 10 modules (SigmoidImpl...) don't have explicit constructors.