Write an implicit conversion.

Scala doesnt manage return types much. Its unnecessary baggage. I rather
like that and wish I could use it in my work.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39*


On Tue, Oct 1, 2013 at 8:55 PM, Dale King <dalewk...@gmail.com> wrote:

> The language support in the Scala DSL is too simplistic in that it does not
> support all the options of Java DSL.
>
> In particular it does not allow setting the return type of the expression.
> In my case I am trying to  set a header to the result of an xpath count
> expression. In the Java DSL this fails unless you explicitly set the return
> type of the xpath expression because the default return type for xpath is a
> node set and it cannot convert a number to a node set.
>
> It also lacks all the other overloads for things like Namespaces on xpath,
> etc.
>
> --
> Dale King
>

Reply via email to