|
From: <no...@so...> - 2000-12-27 16:08:33
|
Bug #126875, was updated on 2000-Dec-26 18:35
Here is a current snapshot of the bug.
Project: Jython
Category: Core
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 1
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!
Follow-Ups:
Date: 2000-Dec-27 08:08
By: bckfnn
Comment:
Fixed in PyClass.java 2.16;
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=126875&group_id=12867
|