mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-22 06:58:45 +00:00
In enrichPossibleValueSource, call getMethod instead of getDeclaredMethod, for finding the id-type of a custom-typed PVS
This commit is contained in:
@ -1485,7 +1485,7 @@ public class QInstanceEnricher
|
|||||||
{
|
{
|
||||||
QCustomPossibleValueProvider<?> customPossibleValueProvider = QCodeLoader.getAdHoc(QCustomPossibleValueProvider.class, possibleValueSource.getCustomCodeReference());
|
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 returnType = getPossibleValueMethod.getGenericReturnType();
|
||||||
Type idType = ((ParameterizedType) returnType).getActualTypeArguments()[0];
|
Type idType = ((ParameterizedType) returnType).getActualTypeArguments()[0];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user