ossgang / ossgang-commons

Apache License 2.0
4 stars 0 forks source link

Check for duplicate method names when collecting methods for mapbackeds #59

Open kaifox opened 3 years ago

kaifox commented 3 years ago

Currently, when e.g an interface and a superinterface override each others methods, they are collected twice. However, this then crashes on duplicate map entries when converting to a mapbacked (using immutable map).... ... We could either simply make it ignoring it (by using another map , not the immutableMap builder), or throw, when scanning the methods, to avoid such constructs.....