Message414
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')###
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:54 | admin | link | issue463580 messages |
2008-02-20 17:16:54 | admin | create | |
|