Skip to content
Commits on Source (6)
lombok (1.16.22-2) unstable; urgency=medium
* Team upload.
* Build delombok and other missing core classes
* Refreshed the Maven poms
-- Emmanuel Bourg <ebourg@apache.org> Thu, 20 Sep 2018 01:32:40 +0200
lombok (1.16.22-1) unstable; urgency=medium
* Team upload.
......
debian/lombok-pom.xml --has-package-version --java-lib --artifact=dist/lombok.jar
debian/lombok-utils.pom.xml --has-package-version --java-lib --artifact=dist/lombok-utils.jar
debian/lombok.pom --has-package-version --java-lib --artifact=dist/lombok.jar
debian/lombok-utils.pom --has-package-version --java-lib --artifact=dist/lombok-utils.jar
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-utils</artifactId>
<packaging>jar</packaging>
<version>1.16.8</version>
<version>1.16.22</version>
<name>Project Lombok</name>
<url>https://projectlombok.org</url>
<description>Spice up your java: Automatic Resource Management, automatic generation of getters, setters, equals, hashCode and toString, and more!</description>
<dependencies/>
<dependencies></dependencies>
<licenses>
<license>
<name>The MIT License</name>
......@@ -44,3 +45,4 @@
</developer>
</developers>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<packaging>jar</packaging>
<version>1.16.8</version>
<version>1.16.22</version>
<name>Project Lombok</name>
<url>https://projectlombok.org</url>
<description>Spice up your java: Automatic Resource Management, automatic generation of getters, setters, equals, hashCode and toString, and more!</description>
<dependencies/>
<dependencies></dependencies>
<licenses>
<license>
<name>The MIT License</name>
......@@ -44,3 +45,4 @@
</developer>
</developers>
</project>
From: Markus Koschany <apo@debian.org>
Date: Tue, 17 Apr 2018 15:45:55 +0200
Subject: build
---
build.xml | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
Description: build
Author: Markus Koschany <apo@debian.org>
--- a/build.xml
+++ b/build.xml
@@ -37,6 +37,15 @@
......@@ -24,12 +18,14 @@ Subject: build
</path>
<path id="runtime.path">
@@ -89,12 +98,12 @@
@@ -87,14 +96,14 @@
<fail>A new version of ivyplusplus was required and has been downloaded. Rerun the script to continue.</fail>
</target>
<target name="ensure-ipp" depends="load-ipp, redownload-ipp" />
- <target name="ensure-ipp" depends="load-ipp, redownload-ipp" />
+ <target name="ensure-ipp" />
- <target name="config-ivy" depends="ensure-ipp" unless="ivy.config">
+ <target name="config-ivy" depends="" unless="ivy.config">
<target name="config-ivy" depends="ensure-ipp" unless="ivy.config">
<ivy:configure file="buildScripts/ivysettings.xml" />
<property name="ivy.config" value="true" />
</target>
......@@ -39,25 +35,16 @@ Subject: build
<target name="contrib" depends="config-ivy" description="Downloads various non-crucial documentation, sources, etc that are useful when developing lombok.ast.">
<ivy:resolve file="buildScripts/ivy.xml" refresh="true" conf="contrib, ecj7, ecj8, ecj9" />
@@ -131,7 +140,7 @@
<ivy:retrieve />
@@ -117,8 +126,6 @@
</target>
- <target name="version" depends="ensure-ipp, ensureOpenJdk8Rt" description="Shows the version number." unless="lombok.version">
+ <target name="version" depends="ensureOpenJdk8Rt" description="Shows the version number." unless="lombok.version">
<mkdir dir="build/lombok" />
<ivy:compile destdir="build/lombok" source="1.5" target="1.5" ecj="true" nowarn="true">
<bootclasspath path="${rt-openjdk8}" />
@@ -155,7 +164,7 @@
<echo level="info">Lombok version: ${lombok.version} (${lombok.fullversion})</echo>
<target name="ensureRuntimeDeps" depends="config-ivy">
- <ivy:resolve file="buildScripts/ivy.xml" refresh="true" conf="runtime" />
- <ivy:retrieve />
</target>
- <target name="-unpackLibs" depends="ensureRuntimeDeps">
+ <target name="-unpackLibs" depends="">
<ivy:cachedunjar dest="build/lombok" marker="build/unpackDeps.marker">
<path refid="runtime.path" />
</ivy:cachedunjar>
@@ -176,7 +185,7 @@
<target name="ensureTestDeps" depends="config-ivy">
@@ -176,7 +183,7 @@
<fail if="java.version.insufficient">To compile lombok, you need JDK9 or higher; lombok requires this version because it's rather difficult to produce lombok builds that are compatible on JDK9 without at least building with JDK9. Sorry about that.</fail>
</target>
......@@ -66,7 +53,15 @@ Subject: build
<!-- ant includes the destination dir on the classpath (and there are good reasons to do this), but that also means
the bleeding edge lombok from the previous build is run, which means if there are bugs in it, you can't compile
anymore until you 'ant clean'. That's very much not desired, so we kill the processor, which stops lombok from running.
@@ -318,7 +327,7 @@
@@ -280,6 +287,7 @@
<include name="lombok/javac/**" />
<include name="lombok/delombok/**" />
<classpath location="build/lombok" />
+ <classpath location="build/stubsstubs" />
<classpath refid="build.path" />
</ivy:compile>
<delete dir="build/lombok-proc-result" quiet="true" />
@@ -318,7 +326,7 @@
</ant>
</target>
......
Description: Disables delombok (fails to build, never used in Debian)
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/build.xml
+++ b/build.xml
@@ -281,6 +281,7 @@
<classpath refid="build.path" />
</ivy:compile>
+<!--
<ivy:compile destdir="build/lombok" source="1.6" target="1.6">
<compilerarg value="-Xbootclasspath/p:build/stubs${path.separator}${rt-openjdk6}" />
<compilerarg value="-Xlint:-options" />
@@ -291,6 +292,7 @@
<classpath location="build/lombok" />
<classpath refid="build.path" />
</ivy:compile>
+-->
<delete dir="build/lombok-proc-result" quiet="true" />
<ivy:compile destdir="build/lombok-proc-result" source="1.6" target="1.6" nowarn="true">
<compilerarg value="-Xbootclasspath/p:build/stubs" />
Description: Disables support for Java 6 and 7
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/build.xml
+++ b/build.xml
@@ -218,6 +218,8 @@
......
Description: Fixes the incompatibilities with Java 9. Upstream compiles
PackageName.java against the JDK 6 API which isn't available in Debian.
The public field JCCompilationUnit.ui was replaced in JDK 9 and this
patch uses the equivalent getPackageName() method instead which is
available since JDK 6 at least.
Description: Fixes the incompatibilities with Java 9:
* Upstream compiles PackageName.java against the JDK 6 API which isn't available
in Debian. The public field JCCompilationUnit.ui was replaced in JDK 9 and this
patch uses the equivalent getPackageName() method instead which is available
since JDK 6 at least.
* JavacAST.java accesses the multipleErrors field of com.sun.tools.javac.util.Log
but it was removed in JDK 9. The patch uses reflection to access the field instead.
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/utils/lombok/javac/PackageName.java
......@@ -36,3 +38,25 @@ Forwarded: no
+ return (pkg instanceof JCFieldAccess || pkg instanceof JCIdent) ? (JCTree) pkg : null;
}
}
--- a/src/core/lombok/javac/JavacAST.java
+++ b/src/core/lombok/javac/JavacAST.java
@@ -530,13 +530,16 @@
}
@Override void error1(DiagnosticPosition pos, String message) {
- boolean prev = log.multipleErrors;
- log.multipleErrors = true;
+ try {
+ Field multipleErrorsField = log.getClass().getField("multipleErrors");
+ boolean prev = multipleErrorsField.getBoolean(log);
+ multipleErrorsField.setBoolean(log, true);
try {
log.error(pos, "proc.messager", message);
} finally {
- log.multipleErrors = prev;
+ multipleErrorsField.setBoolean(log, prev);
}
+ } catch (Throwable t) {}
}
@Override void warning1(DiagnosticPosition pos, String message) {
build.patch
disable-delombok.patch
java9-compatibility.patch
disable-java6-and-java7-support.patch
......@@ -5,11 +5,6 @@ export JAVA_HOME=/usr/lib/jvm/default-java
%:
dh $@ --with javahelper,maven_repo_helper
override_dh_clean:
dh_clean
$(RM) dist/*.jar
$(RM) -r doc/api
override_dh_auto_build:
ant -Dbasedir=$(CURDIR) \
-Dlombok.version=1.16.22 \
......