OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: org.xml.sax.ContentHandler conflicts with java.net.ContentHandler

[ Lists Home | Date Index | Thread Index ]
  • From: David Brownell <david-b@pacbell.net>
  • To: Elliotte Rusty Harold <elharo@metalab.unc.edu>
  • Date: Mon, 28 Feb 2000 19:49:12 -0800

Elliotte Rusty Harold wrote:
> 
> Weblogs.java:25: reference to ContentHandler is ambiguous, both class
> java.net.ContentHandler in java.net and class org.xml.sax.ContentHandler
> in org.xml.sax match
> class URIGrabber implements ContentHandler {
> 
> I do know how to fix this in my own code, but I suspect ContentHandler
> is another SAX2 class name that needs to be rethought in light of name
> conflicts. java.net.ContentHandler certainly isn't the most used class
> in the Java Core API, but I don't think we should gratuitously conflict
> with it. I know this error message will be confusing to less experienced
> Java programmers.

Actually ... I'm more concerned about such basic names as "Reader"
than I am about "ContentHandler", which is a bit on the exotic side
for most purposes.

It's expected that names will conflict, that's why they're put into
different packages.

- Dave

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/threads.html
***************************************************************************




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS