Issue1654

classification
Title: Changing .py file doesn't cause .class file to be recompiled
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, kellyc2702, pjenvey
Priority: Keywords:

Created on 2010-09-16.18:54:01 by kellyc2702, last changed 2013-02-20.19:15:42 by fwierzbicki.

Messages
msg6070 (view) Author: Kelly Campbell (kellyc2702) Date: 2010-09-16.18:54:00
I'm editing .py files and the respective .class files aren't getting recompiled, even after completely restarting the JVM.

Sep 13 16:48 model_endpoint$py.class
Sep 16 13:04 model_endpoint.py

I think I've traced this down to core/imp.java:readCode. When called with testing=false, this won't check the mtime. It must be getting called via imp.java:loadFromCompiled because that's the only place I see that passed testing=false.

If checking the file timestamps every time is a performance concern, then I'd expect some kind of development mode where we can have a setting to enable checking and recompilation.
msg6071 (view) Author: Philip Jenvey (pjenvey) Date: 2010-09-17.00:33:48
Since I haven't seen this reported elsewhere -- are you sure Jython is loading *that* model_endpoint$py.class file and not a different copy? You can confirm that via:

>> import model_endpoint; print model_endpoint.__file__
msg7727 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2013-02-20.19:15:42
I guess we should close this
History
Date User Action Args
2013-02-20 19:15:42fwierzbickisetstatus: open -> closed
resolution: out of date
messages: + msg7727
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.1
2010-09-17 00:33:51pjenveysetnosy: + pjenvey
messages: + msg6071
2010-09-16 18:54:01kellyc2702create