Issue1436557

classification
Title: - hardcoded absolute paths to .py files in generated java
Type: Severity: normal
Components: Jythonc compiler Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, kzuberi
Priority: low Keywords:

Created on 2006-02-22.10:25:30 by anonymous, last changed 2009-03-14.01:04:24 by fwierzbicki.

Messages
msg1105 (view) Author: Nobody/Anonymous (nobody) Date: 2006-02-22.10:25:30
Hello,

We ran into problem with the following issue.

We use Jython 2.1 final. In the Lib and Tools 
directories, I find some python scripts, which when 
used, jythionc compiles to Java. When this happens, the 
resulting code has hardcoded absolute paths inside. If 
I switch operating systems, e.g., from Win to Linux or 
just rename the jpython directory, but use the same 
files system content, these absolute paths start giving 
problems when I want to build my project. Jythonc does 
not regenerate and recompile these system classes, and 
the absolute paths inside it uses for, some reason, to 
find other class files. As a result, the jythinc 
compiler finds the first file, but then when it starts 
traversing dependencies, it cannot find the other files 
as it uses the hardcoded paths in the .class files.

Possible solutions:

- do not put absolute, but relative (to some install 
path) paths in the Java code;
- regenerate the system class files to avoid use stale 
absolute paths in outdated .class files for code in Lib 
and Tools
- do not use paths at all, but only use package 
information and current running options to deduce any 
paths
- I think the jython.jar should suffice to compile 
everything if you put all necessary .py files and .
class files there. Anyway, hardcoded absolute paths 
should go.

Cheers,
  Nikolay Diakov
  nikolay.diakov@fredhopper.com
msg1106 (view) Author: Khalid Zuberi (kzuberi) Date: 2006-09-14.15:04:24
Logged In: YES 
user_id=18288

Is this related to 1548501 and 1284344 which were resolved
recently?

- kz
msg4274 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-03-14.01:04:24
jythonc is no longer maintained.
History
Date User Action Args
2009-03-14 01:04:24fwierzbickisetstatus: open -> closed
resolution: wont fix
messages: + msg4274
nosy: + fwierzbicki
2006-02-22 10:25:30anonymouscreate