From: Dennis S. <dm...@so...> - 2004-03-11 19:00:59
|
Hi Shing, If you can give the specifics of the ClassCastException that would probably help determine what might be going wrong. You can also try asking the Hansel people if they have any suggestions. Offhand I don't know of any reason why Hansel would have a problem with code that's been modified by JiBX, unless it's recompiling the classes itself without running the JiBX binding compiler on the generated class files. - Dennis Cheung, Shing (MED, GEMS-IT) wrote: >Hi all, > >Has anyone used JiBX with Hansel? > >Let's say I want to run coverage test on this class called XmlObject whose >bytecode is run through the jibx compiler. > >public class JunkMeTest extends TestCase >{ > public static Test suite() > { > return new CoverageDecorator(JunkMeTest.class, > new Class[]{XmlObject.class}); > } > > ... >} > >And when I try to run JunkMeTest, it always gives me a ClassCastException. I >am speculating that hansel doesn't like the way jibx modifies the bytecode >of XmlObject. If anyone could offer any way to resolve this conflict please >kindly let me know. > >Shing > > |