Skip to content

Improve EntityInstantiator error message if the to be instantiated type is abstract #2348

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

Closed
mp911de opened this issue Apr 6, 2021 · 0 comments
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Apr 6, 2021

Right now, the failure looks like:

java.lang.InstantiationError: com.example.demo.CustomDto
	at com.example.demo.CustomDto_Instantiator_ddeq8t.newInstance(Unknown Source) ~[main/:na]
	at org.springframework.data.mapping.model.ClassGeneratingEntityInstantiator$EntityInstantiatorAdapter.createInstance(ClassGeneratingEntityInstantiator.java:238) ~[spring-data-commons-2.4.5.jar:2.4.5]
	at org.springframework.data.mapping.model.ClassGeneratingEntityInstantiator.createInstance(ClassGeneratingEntityInstantiator.java:87) ~[spring-data-commons-2.4.5.jar:2.4.5]
@mp911de mp911de added the type: enhancement A general enhancement label Apr 6, 2021
@mp911de mp911de changed the title Improve EntityInstantiator error message if the to be instantiated type is abstract or an interface Improve EntityInstantiator error message if the to be instantiated type is abstract Apr 6, 2021
@mp911de mp911de closed this as completed in 8adfe47 Apr 6, 2021
@mp911de mp911de added this to the 2.5 GA (2021.0.0) milestone Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant