diff options
| author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-10-12 13:07:32 +0200 |
|---|---|---|
| committer | Miroslav Šulc <fordfrog@gentoo.org> | 2025-09-25 13:19:22 +0200 |
| commit | 0eeebaf0348d55de8911b5632416255e13805eb1 (patch) | |
| tree | fdf80661aac150a7e34226d591f46096b012cf28 /dev-java/guice/files/guice-7.0.0-skipFailingTest.patch | |
| parent | f85e06ced5b943b8900aa4d8c32d1669b0f22fa8 (diff) | |
| download | gentoo-0eeebaf0348d55de8911b5632416255e13805eb1.tar.gz gentoo-0eeebaf0348d55de8911b5632416255e13805eb1.tar.bz2 gentoo-0eeebaf0348d55de8911b5632416255e13805eb1.zip | |
dev-java/guice: add 7.0.0
- switches to default slot
- bundles pre-built jars of truth{,-java8-extension}-1.1.3
- skips one test which would otherwise fail with jdk 25 or higher
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/43492
Closes: https://github.com/gentoo/gentoo/pull/43492
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/guice/files/guice-7.0.0-skipFailingTest.patch')
| -rw-r--r-- | dev-java/guice/files/guice-7.0.0-skipFailingTest.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-java/guice/files/guice-7.0.0-skipFailingTest.patch b/dev-java/guice/files/guice-7.0.0-skipFailingTest.patch new file mode 100644 index 000000000000..c954de1e98f8 --- /dev/null +++ b/dev-java/guice/files/guice-7.0.0-skipFailingTest.patch @@ -0,0 +1,35 @@ +There was 1 failure: +1) testInterceptedMethodThrows(com.google.inject.MethodInterceptionTest) +org.junit.ComparisonFailure: expected:<invoke[]> but was:<invoke[Static]> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at com.google.inject.MethodInterceptionTest.testInterceptedMethodThrows(MethodInterceptionTest.java:311) + at java.base/java.lang.invoke.LambdaForm$DMH/0x000000003e09c000.invokeVirtual(LambdaForm$DMH) + at java.base/java.lang.invoke.LambdaForm$MH/0x000000003e09c800.invoke(LambdaForm$MH) + at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder) + +FAILURES!!! +Tests run: 992, Failures: 1 + +Failure happens only with jdk 25 and higher. +With openjdk 21 the test passes. + +--- a/test/com/google/inject/MethodInterceptionTest.java ++++ b/test/com/google/inject/MethodInterceptionTest.java +@@ -53,6 +53,7 @@ import jakarta.inject.Named; + import org.aopalliance.intercept.MethodInterceptor; + import org.aopalliance.intercept.MethodInvocation; + import org.junit.Before; ++import org.junit.Ignore; + import org.junit.Test; + import org.junit.runner.RunWith; + import org.junit.runners.JUnit4; +@@ -283,7 +284,7 @@ public class MethodInterceptionTest { + assertSame(interceptor, extractedBinding.getInterceptors().get(0)); + } + +- @Test ++ @Test @Ignore + public void testInterceptedMethodThrows() throws Exception { + Injector injector = + Guice.createInjector( |
