Date -> Calendar를 매핑하려고 할 때 InstantiationException이 발생합니다.Dozer InstantiationException 매핑 Calendar 클래스
간단한 테스트는 다음과 같습니다
@Test
public void testConversion()
{
GregorianCalendar cal = new GregorianCalendar(2009, 2, 3);
Date sourceValue = cal.getTime();
DozerBeanMapper mapper = new DozerBeanMapper();
Object result = mapper.map(sourceValue, Calendar.class);
}
docs에 따르면,이 상자 밖으로 지원 (달력 추상적 인 경우에도). 누구나 이것에 대한 경험이 있고 내가 잘못하고있는 것을 지적 할 수 있습니까?
테스트 결과는 무엇입니까? – skaffman
mapper.map() 줄에 InstantiationException이 발생합니다. –