Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8315037

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

XMLWordPrintable

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

            wxiao Weibing Xiao
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: