tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r708126 - in /tomcat/tc6.0.x/trunk: STATUS.txt java/org/apache/juli/logging/LogFactory.java webapps/docs/changelog.xml
Date Mon, 27 Oct 2008 10:13:28 GMT
Author: markt
Date: Mon Oct 27 03:13:28 2008
New Revision: 708126

URL: http://svn.apache.org/viewvc?rev=708126&view=rev
Log:
Fix cast error reported by Find Bugs

Modified:
    tomcat/tc6.0.x/trunk/STATUS.txt
    tomcat/tc6.0.x/trunk/java/org/apache/juli/logging/LogFactory.java
    tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=708126&r1=708125&r2=708126&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Mon Oct 27 03:13:28 2008
@@ -151,11 +151,6 @@
   +1: markt,fhanik
   -1: 
 
-* Fix casting bug found by Find Bugs
-  http://svn.apache.org/viewvc?rev=699645&view=rev
-  +1: markt, remm,fhanik
-  -1: 
-
 * Fix String comparision bugs found by Find Bugs
   http://svn.apache.org/viewvc?rev=699646&view=rev
   +1: markt

Modified: tomcat/tc6.0.x/trunk/java/org/apache/juli/logging/LogFactory.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/juli/logging/LogFactory.java?rev=708126&r1=708125&r2=708126&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/juli/logging/LogFactory.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/juli/logging/LogFactory.java Mon Oct 27 03:13:28
2008
@@ -199,7 +199,8 @@
      * length array is returned.
      */
     public String[] getAttributeNames() {
-        return (String[])logConfig.keySet().toArray();
+        String result[] = new String[logConfig.size()];
+        return logConfig.keySet().toArray(result);
     }
 
     /**

Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?rev=708126&r1=708125&r2=708126&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Mon Oct 27 03:13:28 2008
@@ -110,6 +110,9 @@
       <fix>
         Fix HTML decoding error in SSI processing. (markt)
       </fix>
+      <fix>
+        Fix cast error in JULI log factory. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message