You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2010/03/07 23:26:27 UTC
[jira] Created: (IO-241)
CompositeFileComparator(Comparator... delegates) - Using varargs for
non-reifiable type goes against type-safety
CompositeFileComparator(Comparator<File>... delegates) - Using varargs for non-reifiable type goes against type-safety
----------------------------------------------------------------------------------------------------------------------
Key: IO-241
URL: https://issues.apache.org/jira/browse/IO-241
Project: Commons IO
Issue Type: Bug
Affects Versions: 2.0
Reporter: Sebb
The constructor CompositeFileComparator(Comparator<File>... delegates) cannot be used without generating a Type safety warning.
This is because the type is not reifiable.
This is a new class, so I suggest this constructor is replaced with something that supports type-safety, for example List.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IO-241)
CompositeFileComparator(Comparator... delegates) - Using varargs for
non-reifiable type goes against type-safety
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895465#action_12895465 ]
Niall Pemberton commented on IO-241:
------------------------------------
The class already has a constructor which takes an Iterable - so that already covers Lists and more. The varargs constructor is convenient and just because it generates a warning in an IDE isn't IMO a good enough reason to remove it.
> CompositeFileComparator(Comparator<File>... delegates) - Using varargs for non-reifiable type goes against type-safety
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: IO-241
> URL: https://issues.apache.org/jira/browse/IO-241
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Sebb
>
> The constructor CompositeFileComparator(Comparator<File>... delegates) cannot be used without generating a Type safety warning.
> This is because the type is not reifiable.
> This is a new class, so I suggest this constructor is replaced with something that supports type-safety, for example List.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (IO-241)
CompositeFileComparator(Comparator... delegates) - Using varargs for
non-reifiable type goes against type-safety
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton resolved IO-241.
--------------------------------
Resolution: Won't Fix
Resolving this as WONTFIX
> CompositeFileComparator(Comparator<File>... delegates) - Using varargs for non-reifiable type goes against type-safety
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: IO-241
> URL: https://issues.apache.org/jira/browse/IO-241
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Sebb
>
> The constructor CompositeFileComparator(Comparator<File>... delegates) cannot be used without generating a Type safety warning.
> This is because the type is not reifiable.
> This is a new class, so I suggest this constructor is replaced with something that supports type-safety, for example List.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.