RFR (JAXP) 8138721 : ElementTraversal: javadoc warning; also, hasFeature shall return true

Lance Andersen lance.andersen at oracle.com
Fri Oct 2 14:06:05 UTC 2015


On Oct 2, 2015, at 8:35 AM, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:

> Looks fine to me Joe.
> Strange that a trailing '.' could produce such a warning.
Perhaps a javadoc bug?
> 
> I have a question however about:
> 
> (feature.equalsIgnoreCase("ElementTraversal")
> 128                         && (anyVersion
> 129                             || version.equals("1.0"))
> 
> Does this means that ElementTraversal is only supported
> on DOM 1.0 - and not on DOM 2.0 and 3.0?

I am a little confused on this also as I looked at http://www.w3.org/TR/ElementTraversal/ and seems that it should be OK with DOM 2.0 and 3.0 unless I misunderstood the doc

hasFeature() probably should check if feature is null to avoid an NPE?

Best
Lance
> 
> best regards,
> 
> -- daniel
> 
> 
> On 02/10/15 02:16, huizhe wang wrote:
>> Hi,
>> 
>> Thanks Lance and Daniel for pointing out the javadoc warning! Here's the
>> fix.  Also, added ElementTraversal to the DOMImplementation supported
>> feature list.
>> 
>> JBS: https://bugs.openjdk.java.net/browse/JDK-8138721
>> http://cr.openjdk.java.net/~joehw/jdk9/8138721/webrev/
>> 
>> Thanks,
>> Joe
>> 
> 



Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com






More information about the core-libs-dev mailing list