I am getting an error using Hibernate with Javassist, where Dozer is storing the javassist proxy class in the dozer class. I have isolated the problem to ClassMapBuilder.createDefaultClassMap( (Configuration globalConfiguration, Class<?> srcClass, Class<?> destClass).
In this method, classMap.setDestClass( new DozerClass( destClass.getName(), destClass .... ) is called, where destClass is the proxied javassist class.
I resolved the issue for me by adding to the top of the method:
destClass = MappingUtils.getRealClass(destClass);
srcClass = MappingUtils.getRealClass(srcClass);
I realize this is not a very good bug submission in terms of understanding the problem, but I was hoping that someone with more understanding of the source code could perhaps take a look and understand if this is truely the bug. I could submit a patch, but as you can see, it is a 2-line fix.
Please confirm that this is in fact a bug, or please ask for clarification.
Log in to post a comment.