Unsynchronized get method, synchronized set method

Description

From eamonn.w...@gmail.com on November 26, 2013 14:57:37

I have V2.1 sources.

The class ReferenceEncryptedProperties.java has a synchronized setter and one of the two getters is also synchronized. The second setter should also be synchronized for well behaved synchronization.

The corrected method signature follows:

public synchronized String getProperty(String key, String defaultValue) throws EncryptionRuntimeException {

Original issue: http://code.google.com/p/owasp-esapi-java/issues/detail?id=316

Environment

None

Status

Assignee

Unassigned

Reporter

Max Gelman

Priority

Configure