From: Nicola de Candussio <ndecandu@rs...> - 2004-05-19 07:17:15
is there any way to protect jython code from accidentaly java name
Here's an example, uncomment the first line and you will see an
unexpected behavior by having accidentaly redefined the Exception jython
name (I guess).
Please execute the example in two different jython session or you will
not notice the difference.
Unfortunately this code will run in an interactive session and I can not
predict the users commands … which could include the mentioned “from
java.lang import *”
#from java.lang import *
except java.lang.Exception, ex:
except Exception, ex:
Any commet will be appreciated !
thanks in advance