« Return to Thread: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory

Re: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory

by David Daney :: Rate this Message:

Reply to Author | View in Thread

Mohsen Saboorian wrote:
> Hi,
>
> Since -static-libgcj doesn't embed classes which are loaded
> dynamically using reflection, I manually coded:
> DocumentBuilderFactory documentBuilderFactory =
> DomDocumentBuilderFactory.newInstance()

There is no newInstance() method in DomDocumentBuilderFactory.

This static method is being resolved by the compiler into a call to the
DocumentBuilderFactory.newInstance() method.  This does not create a
reference to DomDocumentBuilderFactory.

David Daney

 « Return to Thread: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory