-
Notifications
You must be signed in to change notification settings - Fork 353
ResolvableType - java.lang.IllegalArgumentException: Mismatched number of generics specified #1401
Comments
Thanks for the report. Can you share a small sample that we can run ourselves? |
PR #1408 reproduces similar issue with a minimal change set from data-jpa sample |
I think the problem is that the |
I've reproduced the problem in a unit test. |
This turned out to be quite tricky to fix. I have a first draft that I'd like to review once more. |
@snicoll I have a new exception (but stil related to generics) with latest snapshot on
|
@ch4mpy thanks for testing the snapshot! |
Any updates on @ch4mpy's latest error? |
As far as I am aware, I did fix that (see the reopen). If you're experiencing an issue still please open a new issue with a small sample that we can run ourselves. |
I'm trying to build an application using cloud gcp data datastore.
This app expose a rest api endpoint for receiving data and make a call to gcp datastore for saving data.
RestController:
The
DeviceRepository
is an interface which extend theDatastoreRepository
:While running the application normally doesn't make problem, when i build the native image i get this error from spring-aot-maven-plugin:
The method snippet (from
org.springframework.core.ResolvableType
)From debugging the error:
java.lang.IllegalArgumentException: Mismatched number of generics specified
is raised when processing classorg.springframework.cloud.gcp.data.datastore.repository.support.DatastoreRepositoryFactoryBean
.Method variables involved:
clazz = org.springframework.cloud.gcp.data.datastore.repository.support.DatastoreRepositoryFactoryBean
The problem seems to be the generics[0] because it is the interface itself.
pom.xml
<build>
:VERSIONS:
The text was updated successfully, but these errors were encountered: