From aa0d42c07e46b1da956687947f59e751c91ae7263719458ee637872846cdcdd6 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 25 Sep 2019 14:19:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/ecj?expand=0&rev=42 --- ecj.spec | 5 ++++- java10api-src.tar.xz | 4 ++-- jdk10u-jdk8compat.patch | 42 ++++++++++++++++++++--------------------- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/ecj.spec b/ecj.spec index 4fa62ef..518838b 100644 --- a/ecj.spec +++ b/ecj.spec @@ -27,7 +27,10 @@ Group: Development/Libraries/Java URL: https://www.eclipse.org Source0: http://download.eclipse.org/eclipse/downloads/drops4/%{qualifier}/ecjsrc-%{version}.jar # Jdk10 sources to build Java API stubs for newer JDKs -# Source1: http://hg.openjdk.java.net/jdk-updates/jdk10u/archive/%{jdk10_revision}.tar.bz2 +# wget http://hg.openjdk.java.net/jdk-updates/jdk10u/archive/45b1d041a4ef.tar.bz2 -O jdk10u.tar.bz2 +# tar xf jdk10u.tar.bz2 && rm jdk10u.tar.bz2 +# mv jdk10u-*/src/java.compiler/share/classes java10api-src && rm -rf jdk10u-* +# tar cJf java10api-src.tar.xz java10api-src && rm -rf java10api-src Source1: java10api-src.tar.xz Source2: https://repo1.maven.org/maven2/org/eclipse/jdt/ecj/3.18.0/ecj-3.18.0.pom # Simple pom file to declare org.eclipse:java10api artifact diff --git a/java10api-src.tar.xz b/java10api-src.tar.xz index 5b29f0a..9b92646 100644 --- a/java10api-src.tar.xz +++ b/java10api-src.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f576c91cb7418a9078f22ea447324f6535731c83c561956debc5ab44ec3e7bc8 -size 67208 +oid sha256:913cc3561273af7e22e0f3e39aad33581a315f35a225cff1cab874784d8ddb9f +size 67396 diff --git a/jdk10u-jdk8compat.patch b/jdk10u-jdk8compat.patch index 559a277..833eb0a 100644 --- a/jdk10u-jdk8compat.patch +++ b/jdk10u-jdk8compat.patch @@ -1,5 +1,5 @@ ---- java10api/javax/lang/model/util/AbstractAnnotationValueVisitor6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/AbstractAnnotationValueVisitor6.java 2019-09-25 10:43:47.764821845 +0200 +--- java10api-src/javax/lang/model/util/AbstractAnnotationValueVisitor6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/AbstractAnnotationValueVisitor6.java 2019-09-25 10:43:47.764821845 +0200 @@ -75,7 +75,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -8,8 +8,8 @@ protected AbstractAnnotationValueVisitor6() {} /** ---- java10api/javax/lang/model/util/AbstractElementVisitor6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/AbstractElementVisitor6.java 2019-09-25 10:44:11.829001049 +0200 +--- java10api-src/javax/lang/model/util/AbstractElementVisitor6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/AbstractElementVisitor6.java 2019-09-25 10:44:11.829001049 +0200 @@ -75,7 +75,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -18,8 +18,8 @@ protected AbstractElementVisitor6(){} /** ---- java10api/javax/lang/model/util/AbstractTypeVisitor6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/AbstractTypeVisitor6.java 2019-09-25 10:43:54.596872718 +0200 +--- java10api-src/javax/lang/model/util/AbstractTypeVisitor6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/AbstractTypeVisitor6.java 2019-09-25 10:43:54.596872718 +0200 @@ -74,7 +74,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -28,8 +28,8 @@ protected AbstractTypeVisitor6() {} /** ---- java10api/javax/lang/model/util/ElementKindVisitor6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/ElementKindVisitor6.java 2019-09-25 10:45:46.301704594 +0200 +--- java10api-src/javax/lang/model/util/ElementKindVisitor6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/ElementKindVisitor6.java 2019-09-25 10:45:46.301704594 +0200 @@ -91,7 +91,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -46,8 +46,8 @@ protected ElementKindVisitor6(R defaultValue) { super(defaultValue); } ---- java10api/javax/lang/model/util/ElementScanner6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/ElementScanner6.java 2019-09-25 10:45:07.805417912 +0200 +--- java10api-src/javax/lang/model/util/ElementScanner6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/ElementScanner6.java 2019-09-25 10:45:07.805417912 +0200 @@ -106,7 +106,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -64,8 +64,8 @@ protected ElementScanner6(R defaultValue){ DEFAULT_VALUE = defaultValue; } ---- java10api/javax/lang/model/util/SimpleAnnotationValueVisitor6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/SimpleAnnotationValueVisitor6.java 2019-09-25 10:44:58.053345287 +0200 +--- java10api-src/javax/lang/model/util/SimpleAnnotationValueVisitor6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/SimpleAnnotationValueVisitor6.java 2019-09-25 10:44:58.053345287 +0200 @@ -92,7 +92,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -82,8 +82,8 @@ protected SimpleAnnotationValueVisitor6(R defaultValue) { super(); DEFAULT_VALUE = defaultValue; ---- java10api/javax/lang/model/util/SimpleElementVisitor6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/SimpleElementVisitor6.java 2019-09-25 10:45:31.181591992 +0200 +--- java10api-src/javax/lang/model/util/SimpleElementVisitor6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/SimpleElementVisitor6.java 2019-09-25 10:45:31.181591992 +0200 @@ -94,7 +94,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -100,8 +100,8 @@ protected SimpleElementVisitor6(R defaultValue){ DEFAULT_VALUE = defaultValue; } ---- java10api/javax/lang/model/util/SimpleTypeVisitor6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/SimpleTypeVisitor6.java 2019-09-25 10:45:17.877492913 +0200 +--- java10api-src/javax/lang/model/util/SimpleTypeVisitor6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/SimpleTypeVisitor6.java 2019-09-25 10:45:17.877492913 +0200 @@ -94,7 +94,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -118,8 +118,8 @@ protected SimpleTypeVisitor6(R defaultValue){ DEFAULT_VALUE = defaultValue; } ---- java10api/javax/lang/model/util/TypeKindVisitor6.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/lang/model/util/TypeKindVisitor6.java 2019-09-25 10:44:26.801112546 +0200 +--- java10api-src/javax/lang/model/util/TypeKindVisitor6.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/lang/model/util/TypeKindVisitor6.java 2019-09-25 10:44:26.801112546 +0200 @@ -85,7 +85,6 @@ * @deprecated Release 6 is obsolete; update to a visitor for a newer * release level. @@ -136,8 +136,8 @@ protected TypeKindVisitor6(R defaultValue) { super(defaultValue); } ---- java10api/javax/tools/ToolProvider.java 2018-06-24 16:07:06.000000000 +0200 -+++ java10api/javax/tools/ToolProvider.java 2019-09-25 10:58:25.566820650 +0200 +--- java10api-src/javax/tools/ToolProvider.java 2018-06-24 16:07:06.000000000 +0200 ++++ java10api-src/javax/tools/ToolProvider.java 2019-09-25 10:58:25.566820650 +0200 @@ -94,7 +94,6 @@ * locate system tools as well as user-installed tools. * @return a class loader, or {@code null} @@ -146,4 +146,4 @@ public static ClassLoader getSystemToolClassLoader() { return null; } -Only in java10api/javax/tools: ToolProvider.java.bak +Only in java10api-src/javax/tools: ToolProvider.java.bak