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/ 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/ error: method does not override or implement a method from a supertype
1 error
1 warning
:spring-test:compileJava FAILED

For more details see
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
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/
-+++ b/spring-test/src/main/java/org/springframework/test/context/web/socket/
-@@ -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
Please use for discussions and questions.

Reply via email to