gentoo/dev-java/guice/files/guice-7.0.0-skipFailingTest.patch
Volkmar W. Pogatzki 0eeebaf034
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>
2025-09-25 13:19:22 +02:00

36 lines
1.4 KiB
Diff

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(