Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with SAXParserFactory #4

Closed
cowtowncoder opened this issue Feb 22, 2011 · 1 comment
Closed

Issue with SAXParserFactory #4

cowtowncoder opened this issue Feb 22, 2011 · 1 comment

Comments

@cowtowncoder
Copy link
Member

(reported by Charles Foster)

When I don't set "javax.xml.parsers.SAXParserFactory"

calling:

new com.fasterxml.aalto.sax.SAXParserFactoryImpl().newSAXParser()

gets me a:

com.fasterxml.aalto.sax.SAXParserImpl

but calling:

com.fasterxml.aalto.sax.SAXParserFactoryImpl.newInstance().newSAXParser()

gets me a:

com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl

@cowtowncoder
Copy link
Member Author

This is because 'newInstance' is actually defined in SAXParserFactory, not in Impl.
Usage actually does not make much sense, since if impl class is already known, one could as well just call constructor. But just to reduce likelihood of usage problem, I'll add similar static method in SAXParserFactoryImpl class.

cowtowncoder pushed a commit that referenced this issue Aug 10, 2011
…(handling of SAX property "document-xml-version")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant