bytedeco / javacpp

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

Check for name duplicates in containers #741

Closed HGuillemet closed 5 months ago

HGuillemet commented 5 months ago

Sometimes we add duplicate names in Info.pointerTypes or javaNames to ensure that the proper method overloads are generated (see #740).

When a function is parsed, resulting Java declarations with same signature are deduplicated, but not when containers are generated.

This PR add checks to prevent duplicate generation of container constructors and methods in these cases.

HGuillemet commented 5 months ago

Good to merge.