struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davenew...@apache.org
Subject svn commit: r595360 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/iterator/IteratorGeneratorTag.java
Date Thu, 15 Nov 2007 17:04:58 GMT
Author: davenewton
Date: Thu Nov 15 09:04:56 2007
New Revision: 595360

URL: http://svn.apache.org/viewvc?rev=595360&view=rev
Log:
Fixed broken typecast (would have cast Double to Long; boom).

Modified:
    struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/iterator/IteratorGeneratorTag.java

Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/iterator/IteratorGeneratorTag.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/iterator/IteratorGeneratorTag.java?rev=595360&r1=595359&r2=595360&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/iterator/IteratorGeneratorTag.java
(original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/iterator/IteratorGeneratorTag.java
Thu Nov 15 09:04:56 2007
@@ -207,7 +207,7 @@
                 count = ((Long)countObj).intValue();
             }
             else if (countObj instanceof Double) {
-                count = ((Long)countObj).intValue();
+                count = ((Double) countObj).intValue();
             }
             else if (countObj instanceof String) {
                 try {



Mime
View raw message