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

j:new casts objects to java.lang.String

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: core / taglib.core
    • Labels:
      None

      Description

      I execute the following Jelly script:

      <j:new var="foo" className="java.io.File" >
      <j:arg value="."/>
      </j:new>

      <j:invoke method="isFile" var="isFile" on="${foo}" />

      and get the following Exception when I do:

      java.lang.NoSuchMethodException: No such accessible method: isFile() on object: java.lang.String.

      The same happens if I use the <util:file> tag.

      When I take a look at my log4j file I see the following debug statement:

      DEBUG main org.apache.commons.beanutils.ConvertUtils - Convert string 'java.io.File' to class 'java.lang.String'

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              huertas77 Andre Huertas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: