Different service provider class name of javax.xml.ws.spi.Provider for JDK 11.0.19 and 11.0.20

XMLWordPrintable

    • 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
          }

            Assignee:
            Weibing Xiao
            Reporter:
            Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: