Skip to content

Commit

Permalink
Merge pull request #162 from lukasj/up
Browse files Browse the repository at this point in the history
Update for 3.0.1
  • Loading branch information
lukasj authored Feb 20, 2021
2 parents 7fdd23f + fae3279 commit ff51f0d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
28 changes: 20 additions & 8 deletions api/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -106,7 +106,7 @@
<spotbugs.exclude>${project.basedir}/exclude.xml</spotbugs.exclude>
<spotbugs.skip>false</spotbugs.skip>
<spotbugs.threshold>Low</spotbugs.threshold>
<spotbugs.version>4.0.4</spotbugs.version>
<spotbugs.version>4.2.0</spotbugs.version>

<release.spec.feedback>jaxws-dev@eclipse.org</release.spec.feedback>

Expand All @@ -120,8 +120,8 @@
<legal.doc.source>${project.basedir}/..</legal.doc.source>

<jws-api.version>3.0.0</jws-api.version>
<soap-api.version>2.0.0</soap-api.version>
<xml.bind-api.version>3.0.0</xml.bind-api.version>
<soap-api.version>2.0.1</soap-api.version>
<xml.bind-api.version>3.0.1</xml.bind-api.version>
</properties>

<build>
Expand Down Expand Up @@ -175,7 +175,7 @@
<plugin>
<groupId>org.glassfish.copyright</groupId>
<artifactId>glassfish-copyright-maven-plugin</artifactId>
<version>2.3</version>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.glassfish.build</groupId>
Expand Down Expand Up @@ -238,6 +238,7 @@
<update>${copyright.update}</update>
<!-- check that year is correct -->
<ignoreYear>${copyright.ignoreyear}</ignoreYear>
<quiet>false</quiet>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -270,6 +271,18 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>currentyear-property</id>
<goals>
<goal>timestamp-property</goal>
</goals>
<phase>validate</phase>
<configuration>
<name>current.year</name>
<locale>en,US</locale>
<pattern>yyyy</pattern>
</configuration>
</execution>
<execution>
<id>add-legal-resource</id>
<phase>generate-resources</phase>
Expand All @@ -295,8 +308,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>9</source>
<target>9</target>
<release>9</release>
<compilerArgs>
<arg>-Xlint:all</arg>
</compilerArgs>
Expand Down Expand Up @@ -420,7 +432,7 @@
<header><![CDATA[Jakarta XML Web Services<br>v${spec.version}]]></header>
<bottom><![CDATA[
Comments to: <a href="mailto:${release.spec.feedback}">${release.spec.feedback}</a>.<br>
Copyright &#169; 2019, 2020 Eclipse Foundation. All rights reserved.<br>
Copyright &#169; 2019, ${current.year} Eclipse Foundation. All rights reserved.<br>
Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.]]>
</bottom>
</configuration>
Expand Down
7 changes: 5 additions & 2 deletions api/src/main/java/jakarta/xml/ws/spi/FactoryFinder.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -71,7 +71,10 @@ static <T> T find(Class<T> factoryClass, String fallbackClassName) {

// handling Glassfish (platform specific default)
if (isOsgi()) {
return (T) lookupUsingOSGiServiceLoader(factoryId);
provider = (T) lookupUsingOSGiServiceLoader(factoryId);
if (provider != null) {
return provider;
}
}

if (fallbackClassName == null) {
Expand Down
6 changes: 2 additions & 4 deletions api/src/main/java/jakarta/xml/ws/spi/Provider.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -30,9 +30,7 @@ public abstract class Provider {
* A constant representing the name of the default
* {@code Provider} implementation class.
**/
// Using two strings so that package renaming doesn't change it
private static final String DEFAULT_JAXWSPROVIDER =
"com.sun"+".xml.internal.ws.spi.ProviderImpl";
private static final String DEFAULT_JAXWSPROVIDER = "com.sun.xml.ws.spi.ProviderImpl";

/**
* Creates a new instance of Provider
Expand Down

0 comments on commit ff51f0d

Please sign in to comment.