[
http://www.stripesframework.org/jira/browse/STS-584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Frederic Daoud closed STS-584.
------------------------------
Resolution: Not a Bug
Stripes requires Java 1.5 and should not need to be changed to support 1.4
(especially not in 2011!)
> CollectionUtil.asList(Object) should be named distinctly from
> CollectionUtil.asList(Iterable<T>)
> ------------------------------------------------------------------------------------------------
>
> Key: STS-584
> URL: http://www.stripesframework.org/jira/browse/STS-584
> Project: Stripes
> Issue Type: Improvement
> Affects Versions: Release 1.5
> Reporter: Taras Puchko
> Priority: Minor
>
> Class net.sourceforge.stripes.util.CollectionUtil has an overloaded method
> asList that doesn't comply with Joshua Bloch's recommendations for method
> overloading:
> http://www.informit.com/content/images/0201310058/samplechapter/blochch6.pdf
> For instance, we have two consecutive lines of code in class
> net.sourceforge.stripes.tag.InputOptionsCollectionTag where the casting seems
> unnecessary but it changes the semantics of the method:
> else if (in instanceof Iterable) this.collection =
> CollectionUtil.asList((Iterable) in);
> else if (in.getClass().isArray()) this.collection =
> CollectionUtil.asList(in);
> On the contrary if we have Iterable it = ... we need to use casting to Object
> in order to make a list of a single Iterable.
> Such methods with different semantics are incompatible with Retrotranslator
> which replaces Iterable with Object so both methods have identical signature
> and one of them gets removed.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development