-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P3
-
None
-
Affects Version/s: 11
-
Component/s: xml
The following sample code will offer different javax.sm.ws.spi.Provider when the classpath contains two different jar files (jaxws-rt and axis2-jaxws), where each of them has its own implementation for javax.xml.ws.spi.Provider.
public static void main(String[] args)
{
System.out.println("test load provider...");
Provider provider = javax.xml.ws.spi.Provider.provider();
System.out.println(provider.getClass());
// java 11.0.19 returns class com.sun.xml.ws.spi.ProviderImpl
// java 11.0.20 returns class org.apache.axis2.jaxws.spi.Provider
}
public static void main(String[] args)
{
System.out.println("test load provider...");
Provider provider = javax.xml.ws.spi.Provider.provider();
System.out.println(provider.getClass());
// java 11.0.19 returns class com.sun.xml.ws.spi.ProviderImpl
// java 11.0.20 returns class org.apache.axis2.jaxws.spi.Provider
}