You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/03/10 10:16:07 UTC

DO NOT REPLY [Bug 33943] - ReplaceCopy task throws ClassCastException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33943>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33943


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From peterreilly@apache.org  2005-03-10 10:16 -------
ReplaceCopy is not an ant task.

The internal rep of ant's Copy fileCopyMap changed
from ant 1.5 to 1.6.
in WHATSNEW:
* The values of the Copy#fileCopyMap variable has changed from String to
  String[]. (In java 1.5 terms it was Hashtable<String, String> and
  is now Hashtable<String, String[]>). This will affect third party code
  that extend Copy and override Copy#doFileOperations.

One can write code that will work with both ant 1.5 and 1.6.
by checking the type.

Normally we try to maintain backward compatibly at an xml level
and at a JavaApi level, but sometimes stuff falls tru the cracks.

In this case, the <copy> task did not support multiple results when
using mappers so the internal type needed to change from
String to String[].

There is notthing we can do to fix this now, the third party "ReplaceCopy"
code needs to change to work with ant 1.6+.

Am marking the as *WONTFIX*.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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