-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot subclass final class com.sun.proxy.$Proxy202 #793
Comments
The problem is in the method Lines 279 to 284 in 5c57ed4
The
because the actual How could we fix this? Could we use Another solution would be to pass the repository's |
I hit the same issue but found workaround https://stackoverflow.com/questions/72041358/spring-batch-repositoryitemreaderbuilder-with-repositorymethodreference-throws/72086071#72086071 |
This class and its usage are confusing and causing context startup failures. This commit removes that class to simplify the creation of a RepositoryItemReader through its builder. Issue spring-projects#793
This class and its usage have been reported to be confusing and causing context startup failures without real added value. This commit removes that class to simplify the creation of a RepositoryItemReader through its builder. Issue spring-projects#793
This class and its usage have been reported to be confusing and causing context startup failures without real added value. This commit removes that class to simplify the creation of a RepositoryItemReader through its builder. Resolves #793
FrostbittenKing opened BATCH-2821 and commented
I fail to correctly use the RepositoryMethodReference with the RepositoryItemReaderBuilder.
After I found your sample tests (they are only unit tests), i tried it in an actual spring boot batch application, but the application always terminates on startup, when it tries to instantiate the bean for.
Sorry, cannot list the complete stacktrace (work-related).
I'm not sure how this is supposed to work, since the class gets proxied (and as documented) cannot be final, but this is a Repository Interface extending JpaRepository, which makes it final by design, as far as I understand.
I'm sorry for asking but was this ever tested outside a unit test?
Following sample fails, and blows up with a stacktrace similar to the one listed above:
No further details from BATCH-2821
The text was updated successfully, but these errors were encountered: