Issue480390

classification
Title: main() does not throw exceptions
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn
Priority: normal Keywords:

Created on 2001-11-10.17:20:03 by bckfnn, last changed 2001-11-21.11:44:34 by bckfnn.

Messages
msg464 (view) Author: Finn Bock (bckfnn) Date: 2001-11-10.17:20:03
The main() method in jythonc compiled program does not 
re-throw exception thrown by the compiled script.

Py.runMain() have a try-catch and it doesn't re-throw 
the exception but does a System.exit(-1) instead. That 
makes it impossible to call the main() method from 
some other java class and catch the exception that was 
raised by the script.
msg465 (view) Author: Finn Bock (bckfnn) Date: 2001-11-21.11:11:03
Logged In: YES 
user_id=4201

Added as test340.
msg466 (view) Author: Finn Bock (bckfnn) Date: 2001-11-21.11:44:34
Logged In: YES 
user_id=4201

Fixed in:
PythonModule.py: 2.16; 
proxies.py: 2.13;
Py.java: 2.55;
History
Date User Action Args
2001-11-10 17:20:03bckfnncreate