Index: jython/org/python/core/PyJavaClass.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/PyJavaClass.java,v retrieving revision 2.41 diff -c -r2.41 PyJavaClass.java *** jython/org/python/core/PyJavaClass.java 6 Nov 2002 14:53:47 -0000 2.41 --- jython/org/python/core/PyJavaClass.java 21 Nov 2002 21:59:14 -0000 *************** *** 128,134 **** m.initModule(__dict__); } catch (Exception exc) { - // System.err.println("Got exception: " + exc); throw Py.JavaError(exc); } } --- 128,133 ---- *************** *** 141,153 **** if (__dict__ != null) return; PyStringMap d = new PyStringMap(); - // d.__setitem__("__module__", Py.None); __dict__ = d; try { Method[] methods = getAccessibleMethods(proxyClass); ! setBeanInfoCustom(proxyClass, methods); ! setFields(proxyClass); ! setMethods(proxyClass, methods); } catch (SecurityException se) {} } --- 140,153 ---- if (__dict__ != null) return; PyStringMap d = new PyStringMap(); __dict__ = d; try { Method[] methods = getAccessibleMethods(proxyClass); ! setAttributes(proxyClass, methods); ! Class [] intfs = proxyClass.getInterfaces(); ! for (int i = 0; i < intfs.length; i++) { ! setAttributes(intfs[i], methods); ! } } catch (SecurityException se) {} } *************** *** 266,277 **** // interfaces... c = c.getSuperclass(); } - // return (Field[])fields.toArray(new Field[fields.size()]); Field[] ret = new Field[fields.size()]; fields.copyInto(ret); return ret; } private void setFields(Class c) { Field[] fields = getAccessibleFields(c); for (int i=0; i