Issue463580
Created on 2001-09-21.15:02:14 by anonymous, last changed 2001-10-16.12:50:44 by pedronis.
History | |||
---|---|---|---|
Date | User | Action | Args |
2001-09-21 15:02:14 | anonymous | create |
Created on 2001-09-21.15:02:14 by anonymous, last changed 2001-10-16.12:50:44 by pedronis.
Messages | |||
---|---|---|---|
msg414 (view) | Author: Nobody/Anonymous (nobody) | Date: 2001-09-21.15:02:14 | |
I'm using Jython 2.1a3, Red Hat Linux 6.2, and IBM's VM: java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20000815 (JIT enabled: jitc)) I don't have a detailed test case, but my program, which sets a few variables then evaluates a jython script, doesn't exit when the script a) calls my simple Swing getUserYesNo function, and b) encounters a Java Exception. Included below is the script. I hope you can recreate this. The work-around is to explicitly call System.exit() from main(). Jython is great. Thanks very much for the splendid work! matt cornell@cs.umass.edu ### from javax.swing import JOptionPane def getUserYesNo(yesNoQuestion): result = JOptionPane.showConfirmDialog(None, yesNoQuestion, "choose one", \ JOptionPane.YES_NO_OPTION) return (result == JOptionPane.YES_OPTION) prox.log.info("-> " + "'" + prox.scriptFile + "' running on database '" + \ prox.dbName + "'. prox: '" + prox.toString()) getUserYesNo("Hi?") prox.attrTableName(None) # throws IllegalArgumentException prox.log.info('-> exiting script')### |
|||
msg415 (view) | Author: Samuele Pedroni (pedronis) | Date: 2001-10-16.12:50:44 | |
Logged In: YES user_id=61408 This unrelated to exception throwing. OTOH it's probabibly a sensible behavior and won't be changed, unless of very convincing arguments (on jython-dev). SEE http://www.geocrawler.com/lists/3/SourceForge/7018/0/6834660 / |
History | |||
---|---|---|---|
Date | User | Action | Args |
2001-09-21 15:02:14 | anonymous | create |
Supported by Python Software Foundation,
Powered by Roundup