You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Hang Sun (JIRA)" <co...@jakarta.apache.org> on 2006/04/22 07:10:05 UTC

[jira] Created: (JELLY-228) AntTag.createDataType() throws ClassCastException

AntTag.createDataType() throws ClassCastException
-------------------------------------------------

         Key: JELLY-228
         URL: http://issues.apache.org/jira/browse/JELLY-228
     Project: jelly
        Type: Bug

  Components: taglib.ant  
 Environment: jdk1.5.0_02
    Reporter: Hang Sun
    Priority: Minor


In my Maven 1.0.2 beta 2 env., I wrote following line:

  	<ant:typedef file="${agitar.eclipse.site.dir}/plugins/com.agitar.agitator_${agitar.build}/types.properties"
		classpath="${agitar.eclipse.site.dir}/plugins/com.agitar.agitator_${agitar.build}/ant-task/agitator-tasks.jar"
		loaderRef="agitarjar"/>

where types.properties includes 1 line:
       dashboard-config=com.agitar.ant.SharedAntConfig

SharedAntConfig is a POJO and this seems to cause problem with the AntTag class, whose createDataType() method expects the data type be subclass of org.apache.tools.ant.types.DataType.

It seems to me that AntTag class should not make this assumption.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (JELLY-228) AntTag.createDataType() throws ClassCastException

Posted by "Paul Libbrecht (JIRA)" <co...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/JELLY-228?page=all ]
     
Paul Libbrecht resolved JELLY-228:
----------------------------------

    Resolution: Fixed

Have applied the patch.
Please check and reopen if need be.
paul

> AntTag.createDataType() throws ClassCastException
> -------------------------------------------------
>
>          Key: JELLY-228
>          URL: http://issues.apache.org/jira/browse/JELLY-228
>      Project: Commons Jelly
>         Type: Bug

>   Components: taglib.ant
>  Environment: jdk1.5.0_02
>     Reporter: Hang Sun
>     Priority: Minor
>  Attachments: JELLY-228.patch
>
> In my Maven 1.0.2 beta 2 env., I wrote following line:
>   	<ant:typedef file="${agitar.eclipse.site.dir}/plugins/com.agitar.agitator_${agitar.build}/types.properties"
> 		classpath="${agitar.eclipse.site.dir}/plugins/com.agitar.agitator_${agitar.build}/ant-task/agitator-tasks.jar"
> 		loaderRef="agitarjar"/>
> where types.properties includes 1 line:
>        dashboard-config=com.agitar.ant.SharedAntConfig
> SharedAntConfig is a POJO and this seems to cause problem with the AntTag class, whose createDataType() method expects the data type be subclass of org.apache.tools.ant.types.DataType.
> It seems to me that AntTag class should not make this assumption.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (JELLY-228) AntTag.createDataType() throws ClassCastException

Posted by "Hang Sun (JIRA)" <co...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/JELLY-228?page=all ]

Hang Sun updated JELLY-228:
---------------------------

    Attachment: JELLY-228.patch

Possible patch

> AntTag.createDataType() throws ClassCastException
> -------------------------------------------------
>
>          Key: JELLY-228
>          URL: http://issues.apache.org/jira/browse/JELLY-228
>      Project: jelly
>         Type: Bug

>   Components: taglib.ant
>  Environment: jdk1.5.0_02
>     Reporter: Hang Sun
>     Priority: Minor
>  Attachments: JELLY-228.patch
>
> In my Maven 1.0.2 beta 2 env., I wrote following line:
>   	<ant:typedef file="${agitar.eclipse.site.dir}/plugins/com.agitar.agitator_${agitar.build}/types.properties"
> 		classpath="${agitar.eclipse.site.dir}/plugins/com.agitar.agitator_${agitar.build}/ant-task/agitator-tasks.jar"
> 		loaderRef="agitarjar"/>
> where types.properties includes 1 line:
>        dashboard-config=com.agitar.ant.SharedAntConfig
> SharedAntConfig is a POJO and this seems to cause problem with the AntTag class, whose createDataType() method expects the data type be subclass of org.apache.tools.ant.types.DataType.
> It seems to me that AntTag class should not make this assumption.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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