You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/03/22 16:00:58 UTC
[jira] Updated: (MAVEN-1205) ClassCastException in MavenJellyContext.class
The following issue has been updated:
Updater: Kyle Adams (mailto:kadams@gfs.com)
Date: Mon, 22 Mar 2004 9:59 AM
Changes:
Attachment changed to patch.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1205&page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1205
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1205
Summary: ClassCastException in MavenJellyContext.class
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
core
Versions:
1.1
Assignee:
Reporter: Kyle Adams
Created: Mon, 22 Mar 2004 9:57 AM
Updated: Mon, 22 Mar 2004 9:59 AM
Description:
There seems to be a type mismatch between the getter and setter for the maven.repo.remote property in MavenJellyContext.class.
public void setMavenRepoRemotes( List mavenRepoRemote )
{
setVariable( MavenConstants.REPO_REMOTE, mavenRepoRemote );
}
public List getMavenRepoRemote()
{
// We might have CSV list of remote repositories.
return convertCsvStringToList( (String) getVariable( MavenConstants.REPO_REMOTE ) );
}
As seen in the setter, maven.repo.remote gets set to a List, but the getter attempts to cast the variable to a string, before passing it to a helper function to convert it back to a list. I'm not sure how Maven initially populates this property when reading in a POM, but it looks like there's some consistency problems in how that data is expected to be stored. The attached patch deals with the situation as is through reflection, but long term code will probably need to be changed elsewhere to make sure everyone is storing the same type of data (be it a CSV or a List) in that property.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org