svn commit: r571594 - /lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Fri Aug 31 14:24:38 2007
New Revision: 571594

URL: http://svn.apache.org/viewvc?rev=571594&view=rev
Log:
Protects paramList. Using final only protects the reference to the array, not the references contained within. Shallow clone is good enough to get around this.

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java?rev=571594&r1=571593&r2=571594&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java Fri Aug 31 14:24:38 2007
@@ -47,7 +47,7 @@
     throws ConfigurationException
     {
         params = new Parameters();
-        this.paramList = paramList;
+        this.paramList = (String[])paramList.clone();
         parseParameters(parameters, minParams);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.