bytedeco / javacpp

The missing bridge between Java and native C++
Other
4.43k stars 576 forks source link

Ensure constructor cppName is class name #739

Closed HGuillemet closed 6 months ago

HGuillemet commented 6 months ago

Ensure that, in type(), if type.constructor is set to true, then the cppName is the cppName of the class, whatever is in the infoMap. This prevents, for instance, if we have class C, and an info about the constructorC::C in the info map, that the constructor cppName is set to C::C after a call to context.qualify.

Similarly, in function(), only call context.qualify for normal functions, not constructors. The qualification work has already been performed in type() and the constructor cppName should remain the type cppName.

Fixes part of #735.

Regression tests: no changes in existing presets.