From: <no...@so...> - 2000-12-27 02:35:32
|
Bug #126875, was updated on 2000-Dec-26 18:35 Here is a current snapshot of the bug. Project: Jython Category: Core Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: pedronis Assigned to : nobody Summary: defining class subclassing java through exec produces NPE Details: The following code produces an NPE: from java.lang import Number exec """ class M(N): pass """ in { 'N': Number} The source is the following code in PyClass.init: if (baseClass != null || interfaces.size() != 0) { String proxyName = dict.__finditem__("__module__").toString() + "$" + __name__; proxyClass = MakeProxies.makeProxy(baseClass, interfaces, proxyName, __dict__); } namely in this case dict.__finditem__("__module__") returns null! For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=126875&group_id=12867 |