File: enable-annotation-processor.patch

package info (click to toggle)
libphonenumber 8.13.51%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 108,244 kB
  • sloc: cpp: 53,546; xml: 50,081; java: 33,392; javascript: 31,267; ansic: 482; jsp: 228; sh: 62; makefile: 33
file content (30 lines) | stat: -rw-r--r-- 1,017 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Vladimir Petko <vladimir.petko@canonical.com>
Date: Tue, 17 Feb 2026 15:12:46 +0100
Subject: Enable full annotation processing for Java 25

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1108579
Forwarded: not-needed
Last-Update: 2026-01-26

Java 25 has annotation processing disabled by default.
Add maven-compiler-plugin compiler argument to enable
annotation processing. The patch is not needed upstream
as the build uses Java 8.
---
 tools/java/java-build/pom.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/java/java-build/pom.xml b/tools/java/java-build/pom.xml
index 2548ac5..78a6e17 100644
--- a/tools/java/java-build/pom.xml
+++ b/tools/java/java-build/pom.xml
@@ -49,6 +49,9 @@
         <artifactId>maven-compiler-plugin</artifactId>
         <version>2.0.2</version>
         <configuration>
+          <compilerArgs>
+            <arg>-proc:full</arg>
+          </compilerArgs>
           <source>1.7</source>
 	  <target>1.7</target>
 	  <encoding>UTF-8</encoding>