Skip to content
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

不支持java.sql.Date类型字段实例化 #70

Open
love07ing opened this issue Jun 7, 2022 · 0 comments
Open

不支持java.sql.Date类型字段实例化 #70

love07ing opened this issue Jun 7, 2022 · 0 comments

Comments

@love07ing
Copy link

...
Caused by: com.github.jsonzou.jmockdata.MockException: java.lang.InstantiationException: java.sql.Date
	at com.github.jsonzou.jmockdata.mocker.BeanMocker.mock(BeanMocker.java:47)
	at com.github.jsonzou.jmockdata.mocker.ClassMocker.mock(ClassMocker.java:38)
	at com.github.jsonzou.jmockdata.mocker.BaseMocker.mock(BaseMocker.java:35)
	at com.github.jsonzou.jmockdata.mocker.BeanMocker.setFieldValueByFieldAccessible(BeanMocker.java:67)
	at com.github.jsonzou.jmockdata.mocker.BeanMocker.mock(BeanMocker.java:44)
	... 37 more
Caused by: java.lang.InstantiationException: java.sql.Date
	at java.lang.Class.newInstance(Class.java:427)
	at com.github.jsonzou.jmockdata.mocker.BeanMocker.mock(BeanMocker.java:36)
	... 41 more
Caused by: java.lang.NoSuchMethodException: java.sql.Date.<init>()
	at java.lang.Class.getConstructor0(Class.java:3082)
	at java.lang.Class.newInstance(Class.java:412)
	... 42 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant