1,105,254 Community Members

Commenting lines in java policy file

Member Avatar
av11453
Newbie Poster
9 posts since Oct 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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..

Member Avatar
NormR1
Posting Sage
7,723 posts since Jun 2010
Reputation Points: 563 [?]
Q&As Helped to Solve: 793 [?]
Skill Endorsements: 16 [?]
Team Colleague
 
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.

Member Avatar
av11453
Newbie Poster
9 posts since Oct 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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?

Member Avatar
NormR1
Posting Sage
7,723 posts since Jun 2010
Reputation Points: 563 [?]
Q&As Helped to Solve: 793 [?]
Skill Endorsements: 16 [?]
Team Colleague
 
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.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: