hibernate-orm icon indicating copy to clipboard operation
hibernate-orm copied to clipboard

HHH-18322 Constructor with argument of superclass type not recognized as matching constructor

Open cigaly opened this issue 1 year ago • 1 comments

Jira issue HHH-18322

If constructor with exact argument types does not exists NoSuchMethodException is throws even when matching constructor (e.g. one accepting superclass argument) exists.

To solve the problem, in case when no exact constructor exists, try finding one that matches as fallback


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion. For more information on licensing, please check here.


cigaly avatar Jul 01 '24 14:07 cigaly