This is the mail archive of the java-patches@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: Patch: FYI: disable XML service files


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.


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