jmockdata icon indicating copy to clipboard operation
jmockdata copied to clipboard

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

Open love07ing opened this issue 2 years ago • 0 comments

...
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

love07ing avatar Jun 07 '22 06:06 love07ing