/** * Should fail for Xerces version less than 2.1 * @throws InstantiationException if instantiation failed */ public XercesBridge_2_1() throws InstantiationException { try { // Just try and see if if we're called with Xerces 2.1 or higher getVersion(); } catch (final Error e) { throw new InstantiationException(e.getMessage()); } }
/** * Should fail for Xerces version less than 2.1 * @throws InstantiationException if instantiation failed */ public XercesBridge_2_1() throws InstantiationException { try { // Just try and see if if we're called with Xerces 2.1 or higher getVersion(); } catch (final Error e) { throw new InstantiationException(e.getMessage()); } }