[jdom-interest] Convoluted Document Construction on b10
Robert Koberg
rob at koberg.com
Wed Mar 31 18:03:37 PST 2004
Robert Koberg wrote:
> Bradley S. Huffman wrote:
>
>> Jason Hunter writes:
>>
>>
>>> It's well understood. The reason is that Java doesn't have covariant
>>> return types so the new Parent interface's addContent() methods
>>> returns Parent and the Element implementation can't return the more
>>> specific type of Element. You can do it in J2SE 1.5.
>>>
>>> Options are: rip out the Parent interface, write an
>>> addContent(Parent) method as a nasty hack, keep it this way and have
>>> a J2SE 1.5 version.
>>
>>
>>
>> Or have addContent return void and put a stop to this insanity once and
>> for all.
>
>
> What are people moving to? JDOM seem to have become an experiment. Is
> dom4j the best choice? Is XOM? Are people madly refactoring for the
> radical changes? (does beta mean anything?)
>
> -Rob
>
>>
>> Brad
>>
>>
>
>
More information about the jdom-interest
mailing list