You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Blake Meike <bm...@starbak.com> on 2004/12/28 20:57:56 UTC

XML call-param-rule attribute "from-stack" crippled in Digester?

Hi,
  (I just sent this to the commons-dev list.  I suspect that was a
mistake.  I hope this is the right place.)

  It looks to me as if the "from-stack" attribute for the
"call-param-rule" element, used in the XML specification of Digester
rules is unnecessarily crippled.

  It appears that the argument to "from-stack" is expected to be "true"
or "false" and is converted to a boolean.  That means that it is
impossible to specify anything other than the top of the stack
("this" to the object that will be the target of the soon-to-come
"call-method-rule") as a parameter.

  If the argument were, instead, an integer, converted to an int,
it would allow the (much more useful) specification of an arbitrary
object from the stack, as does its programmatic analogue.

  Is the oversite mine, or in the code? :)

Blake Meike


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