From: Brian Z. <bz...@zi...> - 2005-06-22 13:48:23
|
I spoke too soon, test_tempfile still fails. I'll debug it. thanks, brian Brian Zimmer wrote: > I've tested the patch and it looks good to me. I'll commit it. > > thanks, > > brian > > Mike Garcia wrote: > >> hi Berlin, >> >> If you need StringBuffer to work for you here is a work-around that I >> tested and it >> works. You'll have to rebuild jython. In PyJavaClass.java change the >> method >> setMethods(Class, Method[]) from: >> /************************************************************/ >> private void setMethods(Class c, Method[] methods) { >> for (int i=0; i<methods.length; i++) { >> Method method = methods[i]; >> Class dc = method.getDeclaringClass(); >> if (dc != c) >> continue; >> if (ignoreMethod(method)) >> continue; >> addMethod(method); >> } >> } >> /************************************************************/ >> TO: >> /************************************************************/ >> private void setMethods(Class c, Method[] methods) { >> for (int i=0; i<methods.length; i++) { >> Method method = methods[i]; >> Class dc = method.getDeclaringClass(); >> /* ADD */ >> int mods = dc.getModifiers(); >> if (Modifier.isInterface(mods) || Modifier.isAbstract(mods) ) >> continue; >> /* END ADD */ >> if (dc != c) >> continue; >> if (ignoreMethod(method)) >> continue; >> addMethod(method); >> } >> } >> /************************************************************/ >> >> This works and I attached a simple test for ya. If this could be >> incorporated into >> the jython 2.2a2 tip, that would be great. I can't envision any >> problems arising >> out of this fix. Maybe Brian or Frank can state otherwise. >> Mike >> > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |