-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
11
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
}