We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,047 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Commenting lines in java policy file

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
18 Hours
Discussion Span
8 Months Ago
Last Updated
4
Views
av11453
Newbie Poster
9 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

NormR1
Posting Sage
Team Colleague
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16

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?

av11453
Newbie Poster
9 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

NormR1
Posting Sage
Team Colleague
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0675 seconds using 2.69MB