From daec35928a9a149141b13f489bb890b82fbd875c Mon Sep 17 00:00:00 2001 From: Ernestas Kulik Date: Wed, 10 Jun 2020 07:10:12 +0200 Subject: [PATCH] Add patch for Java 11 compatibility --- ...ferent-exception-messages-in-Java-11.patch | 321 ++++++++++++++++++ abrt-java-connector.spec | 9 +- 2 files changed, 328 insertions(+), 2 deletions(-) create mode 100644 Adapt-to-different-exception-messages-in-Java-11.patch diff --git a/Adapt-to-different-exception-messages-in-Java-11.patch b/Adapt-to-different-exception-messages-in-Java-11.patch new file mode 100644 index 0000000..0bfec39 --- /dev/null +++ b/Adapt-to-different-exception-messages-in-Java-11.patch @@ -0,0 +1,321 @@ +From 9629e6cc1aa0ca2d04a387efb432d0daee0e4ec4 Mon Sep 17 00:00:00 2001 +From: Ernestas Kulik +Date: Wed, 10 Jun 2020 07:03:43 +0200 +Subject: [PATCH] Adapt to different exception messages in Java 11 + +Out-of-bounds exceptions now additionally spit out the length of the +container. +--- + test/outputs/Linux-aarch64/run_test.log.in | 2 +- + test/outputs/Linux-aarch64/run_test.log.in.java-1.7 | 2 +- + test/outputs/Linux-armv7l/run_test.log.in | 2 +- + test/outputs/Linux-armv7l/run_test.log.in.java-1.7 | 2 +- + test/outputs/Linux-ppc/run_test.log.in | 2 +- + test/outputs/Linux-ppc/run_test.log.in.java-1.7 | 2 +- + test/outputs/Linux-ppc64/run_test.log.in | 2 +- + test/outputs/Linux-ppc64/run_test.log.in.java-1.7 | 2 +- + test/outputs/Linux-ppc64le/run_test.log.in | 2 +- + test/outputs/Linux-ppc64le/run_test.log.in.java-1.7 | 2 +- + test/outputs/Linux-s390/run_test.log.in | 2 +- + test/outputs/Linux-s390/run_test.log.in.java-1.7 | 2 +- + test/outputs/Linux-s390x/run_test.log.in | 2 +- + test/outputs/Linux-s390x/run_test.log.in.java-1.7 | 2 +- + test/outputs/run.log.in | 2 +- + test/outputs/run_inner.log.in | 2 +- + test/outputs/run_jar.log.in | 2 +- + test/outputs/run_package.log.in | 2 +- + test/outputs/run_remote.log.in | 2 +- + test/outputs/run_test.log.in | 2 +- + test/outputs/run_test.log.in.java-1.7 | 2 +- + test/outputs/run_three_times.log.in | 2 +- + test/outputs/run_try_finally.log.in | 2 +- + 23 files changed, 23 insertions(+), 23 deletions(-) + +diff --git a/test/outputs/Linux-aarch64/run_test.log.in b/test/outputs/Linux-aarch64/run_test.log.in +index dbf5645..aa2b110 100644 +--- a/test/outputs/Linux-aarch64/run_test.log.in ++++ b/test/outputs/Linux-aarch64/run_test.log.in +@@ -98,7 +98,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-aarch64/run_test.log.in.java-1.7 b/test/outputs/Linux-aarch64/run_test.log.in.java-1.7 +index 6019976..906eb6f 100644 +--- a/test/outputs/Linux-aarch64/run_test.log.in.java-1.7 ++++ b/test/outputs/Linux-aarch64/run_test.log.in.java-1.7 +@@ -112,7 +112,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-armv7l/run_test.log.in b/test/outputs/Linux-armv7l/run_test.log.in +index f5a3f65..4999cb2 100644 +--- a/test/outputs/Linux-armv7l/run_test.log.in ++++ b/test/outputs/Linux-armv7l/run_test.log.in +@@ -98,7 +98,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-armv7l/run_test.log.in.java-1.7 b/test/outputs/Linux-armv7l/run_test.log.in.java-1.7 +index 58a4b57..0f033ec 100644 +--- a/test/outputs/Linux-armv7l/run_test.log.in.java-1.7 ++++ b/test/outputs/Linux-armv7l/run_test.log.in.java-1.7 +@@ -112,7 +112,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-ppc/run_test.log.in b/test/outputs/Linux-ppc/run_test.log.in +index 6927e4b..a097351 100644 +--- a/test/outputs/Linux-ppc/run_test.log.in ++++ b/test/outputs/Linux-ppc/run_test.log.in +@@ -95,7 +95,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-ppc/run_test.log.in.java-1.7 b/test/outputs/Linux-ppc/run_test.log.in.java-1.7 +index 6019976..906eb6f 100644 +--- a/test/outputs/Linux-ppc/run_test.log.in.java-1.7 ++++ b/test/outputs/Linux-ppc/run_test.log.in.java-1.7 +@@ -112,7 +112,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-ppc64/run_test.log.in b/test/outputs/Linux-ppc64/run_test.log.in +index f5a3f65..4999cb2 100644 +--- a/test/outputs/Linux-ppc64/run_test.log.in ++++ b/test/outputs/Linux-ppc64/run_test.log.in +@@ -98,7 +98,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-ppc64/run_test.log.in.java-1.7 b/test/outputs/Linux-ppc64/run_test.log.in.java-1.7 +index 6019976..906eb6f 100644 +--- a/test/outputs/Linux-ppc64/run_test.log.in.java-1.7 ++++ b/test/outputs/Linux-ppc64/run_test.log.in.java-1.7 +@@ -112,7 +112,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-ppc64le/run_test.log.in b/test/outputs/Linux-ppc64le/run_test.log.in +index f5a3f65..4999cb2 100644 +--- a/test/outputs/Linux-ppc64le/run_test.log.in ++++ b/test/outputs/Linux-ppc64le/run_test.log.in +@@ -98,7 +98,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-ppc64le/run_test.log.in.java-1.7 b/test/outputs/Linux-ppc64le/run_test.log.in.java-1.7 +index 6019976..906eb6f 100644 +--- a/test/outputs/Linux-ppc64le/run_test.log.in.java-1.7 ++++ b/test/outputs/Linux-ppc64le/run_test.log.in.java-1.7 +@@ -112,7 +112,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-s390/run_test.log.in b/test/outputs/Linux-s390/run_test.log.in +index 8cc10fd..3f6fd8c 100644 +--- a/test/outputs/Linux-s390/run_test.log.in ++++ b/test/outputs/Linux-s390/run_test.log.in +@@ -98,7 +98,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-s390/run_test.log.in.java-1.7 b/test/outputs/Linux-s390/run_test.log.in.java-1.7 +index 6019976..906eb6f 100644 +--- a/test/outputs/Linux-s390/run_test.log.in.java-1.7 ++++ b/test/outputs/Linux-s390/run_test.log.in.java-1.7 +@@ -112,7 +112,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-s390x/run_test.log.in b/test/outputs/Linux-s390x/run_test.log.in +index f5a3f65..4999cb2 100644 +--- a/test/outputs/Linux-s390x/run_test.log.in ++++ b/test/outputs/Linux-s390x/run_test.log.in +@@ -98,7 +98,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/Linux-s390x/run_test.log.in.java-1.7 b/test/outputs/Linux-s390x/run_test.log.in.java-1.7 +index 6019976..906eb6f 100644 +--- a/test/outputs/Linux-s390x/run_test.log.in.java-1.7 ++++ b/test/outputs/Linux-s390x/run_test.log.in.java-1.7 +@@ -112,7 +112,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/run.log.in b/test/outputs/run.log.in +index aa8b2c8..cabcfb2 100644 +--- a/test/outputs/run.log.in ++++ b/test/outputs/run.log.in +@@ -1,5 +1,5 @@ + Caught exception java.lang.ArrayIndexOutOfBoundsException in method SimpleTest.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at SimpleTest.throwIndexOutOfBoundsException(SimpleTest.java:24) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] + at SimpleTest.catchIndexOutOfBoundsException(SimpleTest.java:47) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] + at SimpleTest.throwAndCatchAllExceptions(SimpleTest.java:61) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] +diff --git a/test/outputs/run_inner.log.in b/test/outputs/run_inner.log.in +index c1ef063..31f5bf9 100644 +--- a/test/outputs/run_inner.log.in ++++ b/test/outputs/run_inner.log.in +@@ -1,5 +1,5 @@ + Caught exception java.lang.ArrayIndexOutOfBoundsException in method SimpleTest.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at SimpleTest.throwIndexOutOfBoundsException(SimpleTest.java:24) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] + at SimpleTest.catchIndexOutOfBoundsException(SimpleTest.java:47) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] + at SimpleTest.throwAndCatchAllExceptions(SimpleTest.java:61) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] +diff --git a/test/outputs/run_jar.log.in b/test/outputs/run_jar.log.in +index 85cf311..9d190e0 100644 +--- a/test/outputs/run_jar.log.in ++++ b/test/outputs/run_jar.log.in +@@ -1,5 +1,5 @@ + Caught exception java.lang.ArrayIndexOutOfBoundsException in method SimpleTest.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at SimpleTest.throwIndexOutOfBoundsException(SimpleTest.java:24) [jar:file:@CMAKE_BINARY_DIR@/test/JarTest.jar!/SimpleTest.class] + at SimpleTest.catchIndexOutOfBoundsException(SimpleTest.java:47) [jar:file:@CMAKE_BINARY_DIR@/test/JarTest.jar!/SimpleTest.class] + at SimpleTest.throwAndCatchAllExceptions(SimpleTest.java:61) [jar:file:@CMAKE_BINARY_DIR@/test/JarTest.jar!/SimpleTest.class] +diff --git a/test/outputs/run_package.log.in b/test/outputs/run_package.log.in +index 7c7e76f..eb9ceb0 100644 +--- a/test/outputs/run_package.log.in ++++ b/test/outputs/run_package.log.in +@@ -1,5 +1,5 @@ + Caught exception java.lang.ArrayIndexOutOfBoundsException in method com.redhat.abrt.test.Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at com.redhat.abrt.test.Test.throwIndexOutOfBoundsException(Test.java:26) [file:@CMAKE_BINARY_DIR@/test/com/redhat/abrt/test/Test.class] + at com.redhat.abrt.test.Test.catchIndexOutOfBoundsException(Test.java:49) [file:@CMAKE_BINARY_DIR@/test/com/redhat/abrt/test/Test.class] + at com.redhat.abrt.test.Test.throwAndCatchAllExceptions(Test.java:63) [file:@CMAKE_BINARY_DIR@/test/com/redhat/abrt/test/Test.class] +diff --git a/test/outputs/run_remote.log.in b/test/outputs/run_remote.log.in +index aeb7890..31ef171 100644 +--- a/test/outputs/run_remote.log.in ++++ b/test/outputs/run_remote.log.in +@@ -1,5 +1,5 @@ + Caught exception java.lang.ArrayIndexOutOfBoundsException in method SimpleTest.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at SimpleTest.throwIndexOutOfBoundsException(SimpleTest.java:24) [jar:http://localhost:54321/JarTest.jar!/SimpleTest.class] + at SimpleTest.catchIndexOutOfBoundsException(SimpleTest.java:47) [jar:http://localhost:54321/JarTest.jar!/SimpleTest.class] + at SimpleTest.throwAndCatchAllExceptions(SimpleTest.java:61) [jar:http://localhost:54321/JarTest.jar!/SimpleTest.class] +diff --git a/test/outputs/run_test.log.in b/test/outputs/run_test.log.in +index dbf5645..aa2b110 100644 +--- a/test/outputs/run_test.log.in ++++ b/test/outputs/run_test.log.in +@@ -98,7 +98,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/run_test.log.in.java-1.7 b/test/outputs/run_test.log.in.java-1.7 +index a0d53d8..d79668c 100644 +--- a/test/outputs/run_test.log.in.java-1.7 ++++ b/test/outputs/run_test.log.in.java-1.7 +@@ -112,7 +112,7 @@ Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&ma + at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] + executable: @CMAKE_BINARY_DIR@/test/Test.class + Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] + at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] +diff --git a/test/outputs/run_three_times.log.in b/test/outputs/run_three_times.log.in +index aa8b2c8..cabcfb2 100644 +--- a/test/outputs/run_three_times.log.in ++++ b/test/outputs/run_three_times.log.in +@@ -1,5 +1,5 @@ + Caught exception java.lang.ArrayIndexOutOfBoundsException in method SimpleTest.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at SimpleTest.throwIndexOutOfBoundsException(SimpleTest.java:24) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] + at SimpleTest.catchIndexOutOfBoundsException(SimpleTest.java:47) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] + at SimpleTest.throwAndCatchAllExceptions(SimpleTest.java:61) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] +diff --git a/test/outputs/run_try_finally.log.in b/test/outputs/run_try_finally.log.in +index 877f755..7340652 100644 +--- a/test/outputs/run_try_finally.log.in ++++ b/test/outputs/run_try_finally.log.in +@@ -1,5 +1,5 @@ + Caught exception java.lang.ArrayIndexOutOfBoundsException in method SimpleTest.throwIndexOutOfBoundsException() +-Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 42 out of bounds for length 10 + at SimpleTest.throwIndexOutOfBoundsException(SimpleTest.java:24) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] + at SimpleTest.catchIndexOutOfBoundsException(SimpleTest.java:47) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] + at SimpleTest.throwAndCatchAllExceptions(SimpleTest.java:61) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] +-- +2.26.2 + diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index 01a4759..39c93ce 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -4,7 +4,7 @@ Name: abrt-java-connector Version: 1.1.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems Group: System Environment/Libraries @@ -16,13 +16,15 @@ Source0: %{url}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %endif +Patch0001: Adapt-to-different-exception-messages-in-Java-11.patch + BuildRequires: pkgconfig(abrt) >= 2.14.1 BuildRequires: check-devel BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gettext -BuildRequires: java-devel +BuildRequires: java-devel >= 11 BuildRequires: pkgconfig(libreport) >= 2.13.0 BuildRequires: rpm-devel BuildRequires: satyr-devel @@ -102,6 +104,9 @@ make test || { %changelog +* Wed Jun 10 2020 Ernestas Kulik - 1.1.5-3 +- Add patch for Java 11 compatibility + * Wed May 13 2020 Michal Fabik - 1.1.5-1 - new upstream release: 1.1.5