This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]