Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1
-
None
-
None
-
Patch
Description
PropertiesSettings does not close the stream to the properties file that is read. This causes redeploy issues, since the properties file cannot be removed on undeploy. Fix the constructor code like this:
InputStream inStream = null;
try
catch (IOException e)
{ throw new StrutsException("Could not load " + name + ".properties:" + e, e); } finally
{
if (inStream != null)
try
catch (IOException e)
{ // Ignore }}