Index: runtime/patches/rmicast.txt =================================================================== --- runtime/patches/rmicast.txt (revision 0) +++ runtime/patches/rmicast.txt (revision 6249) @@ -0,0 +1,2 @@ +RMI cast wasn't working. +components@llnl.gov Property changes on: runtime/patches/rmicast.txt ___________________________________________________________________ Name: svn:mime-type + text/plain Name: eol-style + native Index: compiler/gov/llnl/babel/backend/ior/IORSource.java =================================================================== --- compiler/gov/llnl/babel/backend/ior/IORSource.java (revision 6248) +++ compiler/gov/llnl/babel/backend/ior/IORSource.java (revision 6249) @@ -1710,7 +1710,9 @@ /** * @param cls */ - private void generateMainExec(Class cls) { + private void generateMainExec(Class cls) + throws CodeGenerationException + { SymbolID id = cls.getSymbolID(); String my_symbolName = IOR.getSymbolName(id); d_writer.println("struct " + my_symbolName + "__method {"); @@ -1734,6 +1736,10 @@ d_writer.println(" " + IOR.getExceptionFundamentalType() + "*_ex ) { "); d_writer.tab(); List methods = new ArrayList(cls.getMethods(true)); + + //Add Cast so we can use it to connect. + methods.add(IOR.getBuiltinMethod(IOR.CAST, cls.getSymbolID(), d_context, false)); + Collections.sort(methods, new IOR.CompareMethods()); d_writer.println("static const struct " + my_symbolName + "__method s_methods[] = {");