Skip to content

Conversation

@davideagen
Copy link

The new PropertyUtils class wraps System.getProperty calls and handles SecurityExceptions. When a SecurityException occurs because the SecurityManager has denied access to the property read, null or the default value is returned. All code in spymemcached was already checking for null or setting a default value but it required grants to read the various properties. This change eliminates the need for those grants, making it easy to run spymemcached under a SecurityManager.

The new PropertyUtils class wraps System.getProperty calls and handles SecurityExceptions. When a SecurityException occurs because the SecurityManager has denied access to the property read, null or the default value is returned. All code in spymemcached was already checking for null or setting a default value but it required grants to read the various properties. This change eliminates the need for those grants, making it easy to run spymemcached under a SecurityManager.
@ingenthr ingenthr self-assigned this Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants