RFR [JDK8]: 7169894: JAXP Plugability Layer: using service loader

Paul Sandoz paul.sandoz at oracle.com
Wed Aug 29 15:56:17 UTC 2012


On Aug 29, 2012, at 10:56 AM, Paul Sandoz <Paul.Sandoz at oracle.com> wrote:

> Hi Joe,
> 
> I would urge you to reconsider errors using SL, since SL is being explicitly called out as part of the specification. 
> 
> You can make any such SL-related errors more meaningful (yes, i want the stack trace telling what bits of SL code were called!) and remove any potential for CCEs, due to linkage errors [*], by passing the SCE instance to the constructor of DatatypeConfigurationException or the FactoryConfigurationError variants e.g.
> 
> 244         } catch (ServiceConfigurationError e) {
> 245             throw new DatatypeConfigurationException(""Provider " + className + " could not be loaded or instantiated using java.util.ServiceLoader", e);
> 

Doh, please shoot me now, i was labouring under the misapprehension that SCE was extending from Exception and not Error.

Apologies for the confusion.

Paul.


More information about the core-libs-dev mailing list