0

In the java policy file what will happen if we comment out

//permission java.lang.RuntimePermission "stopThread";.

My understanding is that we can't call thread.stop() anywhere in the program am i rite?
If we call it should say "Access denied"...

If any Text area is built with AWT closing it by clicking on "X" on the window will call this thread.stop() method?

Please correct me if am wrong..

2
Contributors
3
Replies
4
Views
4 Years
Discussion Span
Last Post by NormR1
0

what happens when you tried it? I've never tried doing that specific thing. Most of my changes to the .java.policy file was to give permissions to applets.

0

i tried commenting teh above line and i could not close the text editor window when the user does the EXIT_ACTION by clicking on "X" the widnow... in the java console i saw the errors thrown as "access denied" for the above commented one...

Whether internally java would call "thread.stop" if we close any AWT window?

0

could not close the text editor window

Can you expain what you were doing that caused a problem in an editor?

errors thrown as "access denied"

Please post the full text of the error messsage.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.