Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-228

AntTag.createDataType() throws ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • taglib.ant
    • None
    • jdk1.5.0_02

    Description

      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.

      Attachments

        1. JELLY-228.patch
          0.5 kB
          He Sun

        Activity

          People

            Unassigned Unassigned
            hsun He Sun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: