<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Jason, a confession: we're still using B9 so I can't verify in a runtime sense!<BR>
<BR>
However, I've looked at the updated code and can say that the method now looks like it should do the right thing.<BR>
<BR>
(Having said that, I'd have just updated the javadoc so as not to impact existing client software that uses this method...)<BR>
<BR>
Phil :n)<BR>
<BR>
On Tue, 2004-02-10 at 19:49, Jason Hunter wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Fixed. Phil, please verify.
Anyone relying on the backward behavior of isAncestor() should update
their code.
-jh-
Jason Hunter wrote:
> Looks like it's the same situation in b10. I'll make sure it gets fixed.
>
> -jh-
>
> Phil Weighill-Smith wrote:
>
>> I know Beta 10 is now available, but thought I'd raise this point
>> (raised to me) against Beta 9 just in case...
>>
>> The following javadoc for
>>
>> class org.jdom.Element
>>
>> /**
>> * Determines if this element is the ancestor of another element.
>> *
>> * @param element <code>Element</code> to check against
>> * @return <code>true</code> if this element is the ancestor of the
>> * supplied element
>> */
>> public boolean isAncestor(Element element) {
>>
>> is remarkable because the method does just the opposite :-)
>>
>> e.g.
>>
>> parent.isAncestor(child) is FALSE
>> child.isAncestor(parent) is TRUE
>> --
>> Phil Weighill-Smith <_phil.weighill-smith@volantis.com_
>> <mailto:phil.weighill-smith@volantis.com>>
>> Volantis Systems
>>
> _______________________________________________
> To control your jdom-interest membership:
> </FONT><A HREF="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com"><U>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</U></A>
<FONT COLOR="#737373">>
> </I></FONT></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Phil Weighill-Smith <<A HREF="mailto:phil.weighill-smith@volantis.com"><U>phil.weighill-smith@volantis.com</U></A>><BR>
Volantis Systems
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>