From df804c3bd56f7c1d1c1936b16e294ad6bafd2de4 Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Mon, 22 Nov 2021 21:30:49 +0100 Subject: [PATCH] Ignore test. --- .../implementation/LoadedTypeInitializerForStaticFieldTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/byte-buddy-dep/src/test/java/net/bytebuddy/implementation/LoadedTypeInitializerForStaticFieldTest.java b/byte-buddy-dep/src/test/java/net/bytebuddy/implementation/LoadedTypeInitializerForStaticFieldTest.java index 7b9fc9c3b96..5f44ed19714 100644 --- a/byte-buddy-dep/src/test/java/net/bytebuddy/implementation/LoadedTypeInitializerForStaticFieldTest.java +++ b/byte-buddy-dep/src/test/java/net/bytebuddy/implementation/LoadedTypeInitializerForStaticFieldTest.java @@ -1,5 +1,6 @@ package net.bytebuddy.implementation; +import org.junit.Ignore; import org.junit.Test; import java.io.ByteArrayInputStream; @@ -43,6 +44,7 @@ public void testNonAccessibleType() throws Exception { assertThat(Qux.foo, is(object)); } + @Ignore("Fails on Java 18 due to new bug in reflection code") @Test(expected = IllegalArgumentException.class) public void testNonAssignableField() throws Exception { new LoadedTypeInitializer.ForStaticField(FOO, new Object()).onLoad(FooBar.class);