This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: disable XML service files
- From: Andrew Haley <aph at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: GCJ-patches <java-patches at gcc dot gnu dot org>
- Date: Sat, 10 Mar 2007 06:39:45 +0000
- Subject: Re: Patch: FYI: disable XML service files
- References: <m37itq9j4m.fsf@localhost.localdomain>
Tom Tromey writes:
> I'm checking this in on the trunk and the RH 4.1 branch.
>
> This removes the XML service files from libgcj.so. This lets us
> override things properly again.
>
> Andrew, I tried your test case from ifoox, but I can only see the
> failure if I back out some of the latest XML bug fixes.
Well, yeah. The important think to make sure is that we really can
override the built-in classes.
> However a
> simpler test case shows which thing we're actually loading:
>
> import javax.xml.parsers.*;
> public class q {
> public static void main(String[] args) throws Throwable{
> DocumentBuilderFactory tf = DocumentBuilderFactory.newInstance();
> System.out.println(tf.getClass());
> }
> }
>
> Eg, here's the bug in action:
>
> opsy. gij -Djava.class.path=/usr/share/java/xerces-j2.jar:. q
> class gnu.xml.dom.DomDocumentBuilderFactory
Looks good. Is there some easy way to make sure the fallbacks still
work with these servie files gone?
Andrew.