   [java] Java unsecurity question
  I do have a very simple scenario, a simple hello world that does Thread.currentThread().setPriority(Thread.MAX_PRIORITY);at the beggining, i use a standard java -Djava.security.manager -Djava.security.policy==java.policy helloline for launch it, i was expecting to get a SecurityException since my java.policy file is basically empty but i don''t!If i try to write a file i get the proper SecurityException, if i add the permission to the policy file it properly writes into the file without giving me a SecurityException (proof that is getting the right policy file)It doesn''t make any sense! any help? does somebody has a clue if threads are a special case or something? i googled it with no much luck Help!!!-Mat 
  The official Java tutorial (http://java.sun.com/docs/books/tutorial) has a section on security, did you checked it ?;  Nu luck with that, as the example shows a nice example of how to restrict the access to files i''m able to do that, is this thread access that just can''t get it ((-Mat ;  Sorry, I can''t help you there. Never played with security stuff so far. I did a quick search and, in theory, you should need a RuntimePermission to modify thread''s priority but I found nothing else. 