[Ikvm-developers] Custom Datatype Issue
Brought to you by:
jfrijters
From: Anirban G. <gan...@ho...> - 2010-08-23 11:53:43
|
Volker StructureReturnDTO is cutom object i want to retun it from cutom method. I have seen this custom object from arraylist x using quick watch but I am to able to cast it.... Some biridiging issue i am facing because the method retun Cutom object StructureReturnDTO in java but we wre trying to cast .NET cutom object StructureReturnDTO java.io.File jarFile = new java.io.File(filePathForJar); java.net.URL url = jarFile.toURL(); java.net.URL[] urls = new java.net.URL[] { url }; URLClassLoader ucloader = new URLClassLoader(urls); Class cls = ucloader.loadClass("ToXml"); object jarObj = cls.newInstance(); Class[] paramClassType = new Class[1]; paramClassType[0] = typeof(string); Method method = cls.getMethod("cobolParser", paramClassType); object[] param = new object[1]; param[0] = folderPathToParse; java.util.ArrayList x = (java.util.ArrayList)method.invoke(jarObj, param); StructureReturnDTO y = (StructureReturnDTO)x.get(0); // This line I am facing an error. How can I resolve this issue. Anirban |