In enrichPossibleValueSource, call getMethod instead of getDeclaredMethod, for finding the id-type of a custom-typed PVS

This commit is contained in:
2025-07-14 15:56:55 -05:00
parent db23469c8a
commit ec697d7f0f

View File

@ -1485,7 +1485,7 @@ public class QInstanceEnricher
{
QCustomPossibleValueProvider<?> customPossibleValueProvider = QCodeLoader.getAdHoc(QCustomPossibleValueProvider.class, possibleValueSource.getCustomCodeReference());
Method getPossibleValueMethod = customPossibleValueProvider.getClass().getDeclaredMethod("getPossibleValue", Serializable.class);
Method getPossibleValueMethod = customPossibleValueProvider.getClass().getMethod("getPossibleValue", Serializable.class);
Type returnType = getPossibleValueMethod.getGenericReturnType();
Type idType = ((ParameterizedType) returnType).getActualTypeArguments()[0];