Originally posted by Jim Yingst:
Are you sure about that? getPolicy() just makes a security check and calls getPolicyNoCheck(). The code for the latter (in JDK 1.4.2 anyway) is basically
Looks like a singleton to me. Are you using a particular JDK where you see something different?
What I should have said was that getInstance() does not return a new instance every time it's called.