Source: libspring-java
Version: 4.3.13-1
Severity: serious
Tags: patch

Dear Maintainer,

The package currently fails to build from source with the following error message:

All input files are considered out-of-date for incremental task ':spring-test:compileJava'.
Compiling with JDK Java compiler API.
/build/1st/libspring-java-4.3.13/spring-test/src/main/java/org/springframework/test/context/web/socket/MockServerContainer.java:56: warning: [deprecation] setAsyncSendTimeout(long) in WebSocketContainer has been deprecated
        public void setAsyncSendTimeout(long timeout) {
                    ^
/build/1st/libspring-java-4.3.13/spring-test/src/main/java/org/springframework/test/context/web/socket/MockServerContainer.java:60: error: method does not override or implement a method from a supertype
        @Override
        ^
1 error
1 warning
:spring-test:compileJava FAILED

For more details see
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/libspring-java.html
I first spotted this issue when the package was synced to Ubuntu, but was able to
reproduce it on my Sid system.

The issue itself seems to be related to a method which used to(?) be part of an interface, but is now causing this error. Surprisingly enough, the method was added by one of the Debian patches. The attached patch modifies the original patch a bit and resolves the FTBFS. I must admit I don't have the full overview
over what's going on here, so there might be a better way to fix this :)



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


--
mvh / best regards
Hans Joachim Desserud
http://desserud.org
diff --git a/debian/patches/0041-servlet-api-compatibility.patch b/debian/patches/0041-servlet-api-compatibility.patch
index 55887129..0f2e3280 100644
--- a/debian/patches/0041-servlet-api-compatibility.patch
+++ b/debian/patches/0041-servlet-api-compatibility.patch
@@ -100,17 +100,3 @@ Forwarded: no
 +		throw new UnsupportedOperationException();
 +	}
  }
---- a/spring-test/src/main/java/org/springframework/test/context/web/socket/MockServerContainer.java
-+++ b/spring-test/src/main/java/org/springframework/test/context/web/socket/MockServerContainer.java
-@@ -58,6 +58,11 @@
- 	}
- 
- 	@Override
-+	public void setDefaultAsyncSendTimeout(long timeout) {
-+		this.defaultAsyncSendTimeout = timeout;
-+	}
-+
-+	@Override
- 	public long getDefaultMaxSessionIdleTimeout() {
- 		return this.defaultMaxSessionIdleTimeout;
- 	}
__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to