mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Same Double/Long cast issue as in IteratorGeneratorTag.
Now casting instanceof Double to a Double (not Long). git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@595363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -224,7 +224,7 @@ public class SubsetIteratorTag extends StrutsBodyTagSupport {
|
||||
count = ((Long)countObj).intValue();
|
||||
}
|
||||
else if (countObj instanceof Double) {
|
||||
count = ((Long)countObj).intValue();
|
||||
count = ((Double)countObj).intValue();
|
||||
}
|
||||
else if (countObj instanceof String) {
|
||||
try {
|
||||
@@ -250,7 +250,7 @@ public class SubsetIteratorTag extends StrutsBodyTagSupport {
|
||||
start = ((Long)startObj).intValue();
|
||||
}
|
||||
else if (startObj instanceof Double) {
|
||||
start = ((Long)startObj).intValue();
|
||||
start = ((Double)startObj).intValue();
|
||||
}
|
||||
else if (startObj instanceof String) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user