[jdom-interest] suggested JDOM2 improvements
Michael Kay
mike at saxonica.com
Fri Jan 20 06:31:07 PST 2012
>public XPathCompiled<Object> compile(String xpath);
I started introducing generics for this in Saxon 9.4 and the experience
wasn't wholly positive; it left a lot of cases where there were warnings
that needed to be ignored. That may be because I found generics to be
deeper and more bewildering than I expected.
It's not at all clear to me how your types such as
XPathCompiled<Element> are supposed to work. Do they rely excessively on
the ability of the XPath engine to do static type analysis of the
supplied expression?
Michael Kay
Saxonica
More information about the jdom-interest
mailing list