Update of /cvsroot/jython/jython/org/python/core
In directory usw-pr-cvs1:/tmp/cvs-serv22267/core
Modified Files:
PyJavaClass.java
Log Message:
avoids isLazy hack.
introduces jython internal functs built-in module _jython (with is_lazy).
Index: PyJavaClass.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/core/PyJavaClass.java,v
retrieving revision 2.29
retrieving revision 2.30
diff -C2 -r2.29 -r2.30
*** PyJavaClass.java 2001/01/15 04:44:33 2.29
--- PyJavaClass.java 2001/01/17 02:21:09 2.30
***************
*** 19,24 ****
}
! public static final boolean isLazy(PyJavaClass jc) { // ?? for jreload
! return jc.proxyClass == null;
}
--- 19,24 ----
}
! public final boolean isLazy() {
! return proxyClass == null;
}
***************
*** 797,801 ****
public Object __tojava__(Class c) {
! if (c != PyJavaClass.class) initialize(); // ?? for isLazy
return super.__tojava__(c);
}
--- 797,801 ----
public Object __tojava__(Class c) {
! initialize();
return super.__tojava__(c);
}
|