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
Tom Tromey wrote:
> >>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:
>
> Gary> This is actually the correct behaviour: xerces should only be
> Gary> loaded if it is endorsed, and merely being in the classpath
> Gary> should have no effect.
>
> I do think this behavior is fishy
Not just fishy but actually wrong :)
> I think removing the service files is the best thing to do anyway.
> Using the service files to mask some other bug is a bad approach IMO
Having the service files is the right thing to do if you want JAXP
parsers to be loaded only if they're endorsed. Having no service
files is the right thing if you want them to be loaded regardless.
I think it all comes down to understanding what the endorsed standard
override thing is supposed to be overriding, which is the classes in
javax.xml, the interface classes. The implementation is not the
standard, so implementations don't need endorsing to make them work.
I misunderstood that. It didn't help that whoever wrote that bit of
the IBM class library also misunderstood it ;)
Cheers,
Gary