logo       

respectJavaAccessibility question: msg#00003

lang.jython.user

Subject: respectJavaAccessibility question

The only way I've been able to get access to private attributes of a
java class is by changing the 'python.security.respectJavaAccessibility'
entry in the registry to 'false'.

But this changes the setting for all jython processes globally (that
launch thereafter), whereas I just want the 1 shell that I start to have
access to private stuff.

Is there any way to accomplish this?

I tried adding a -D option to the start command for the shell, but that
didn't make a different, and printing sys.registry showed that jython
still showed that option as 'true'. I also tried changing the registry
programmatically, but that didn't seem to affect what I had access to
either.

Is there any way of enabling this without enabling it globally?

I can understand that there are problems with allowing individual
processes to change this setting, but perhaps other than just true or
false, there could be a third option to allow enabling if and only if it
is passed as a -D option at startup (so jython would read the system
property at startup and not allow changes after that)?

Thanks,

Calvin


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise