Issue222793

classification
Title: Calling reload on java class loaded from sys.path cause NPE
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: bckfnn, pedronis
Priority: low Keywords:

Created on 2000-11-18.18:54:11 by bckfnn, last changed 2000-11-20.15:51:11 by pedronis.

Messages
msg23 (view) Author: Finn Bock (bckfnn) Date: 2000-11-18.18:54:11
Calling reload on a java class loaded from sys.path cause a NPE.

---------------------- FILE test081j.java ---------------------- 
public class test081j {
    public static String spam() { return "bar"; }
}
----------------------  END ---------------------- 

JPython 1.1beta1 on java1.2.1
Copyright ® 1997-1999 Corporation for National Research Initiatives
>>> import test081j
>>> reload(test081j)
Traceback (innermost last):
  File "<console>", line 1, in ?
java.lang.NullPointerException
        at org.python.core.imp.getParent(imp.java:412)
        at org.python.core.imp.importName(imp.java:430)
        at org.python.core.imp.reload(imp.java:515)
        at org.python.core.__builtin__.reload(__builtin__.java:663)
msg24 (view) Author: Samuele Pedroni (pedronis) Date: 2000-11-20.15:51:11
Actually reload(jclass) is nop.
History
Date User Action Args
2000-11-18 18:54:11bckfnncreate