In javax.xml.stream.XxxxFactories (such as XMLEventFactory) the newInstance/newFactory methods takes 2 parameters. However, the second parameter is later ignored in FactoryFinder.find.
Comments
JDK-8028822 covers the specification change as well as the implementation requested by this request.
27-11-2013
This issue needs to be re-evaluated given the spec correction in JDK-8028822. In particular, I think it requires input from the JCK team as to whether there will be conformance tests that use the class loader.
23-11-2013
This issue exists in the original API implementation.