From: Finn B. <bc...@us...> - 2002-05-31 12:38:04
|
Update of /cvsroot/jython/bugtests In directory usw-pr-cvs1:/tmp/cvs-serv9373 Added Files: test364.py Log Message: Test for "[ 531256 ] Constructor problem using newInstance()" --- NEW FILE: test364.py --- """ [ 531256 ] Constructor problem using newInstance() """ import support support.compileJava("test364p/X.java") support.compileJava("test364p/Y.java") from test364p import X,Y class PyX(X): pass class PyY(Y): pass PyX.useClass(PyY) X() # OK try: PyX() # Not OK prints 'TypeError: Proxy instance reused' except TypeError: raise support.TestWarning('Class ctor should mix with newInstance()') |