commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blake Meike <>
Subject XML call-param-rule attribute "from-stack" crippled in Digester?
Date Tue, 28 Dec 2004 19:57:56 GMT
  (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:
For additional commands, e-mail:

View raw message