Skip to content

Commit 1b710e1

Browse files
committed
Fix another test that broke when using Java 21
1 parent fe4b958 commit 1b710e1

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

flexmark-profile-pegdown/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,23 @@
117117
<scope>test</scope>
118118
</dependency>
119119
</dependencies>
120+
121+
<build>
122+
<plugins>
123+
<plugin>
124+
<groupId>org.apache.maven.plugins</groupId>
125+
<artifactId>maven-surefire-plugin</artifactId>
126+
<configuration>
127+
<argLine>
128+
<!-- Open the java.lang package for reflection, otherwise pegdown throws the following exception in tests
129+
Could not determine whether class 'org.pegdown.Parser$$parboiled' has already been loaded
130+
131+
See https://stackoverflow.com/questions/75116023/unable-to-make-protected-final-java-lang-class-java-lang-classloader-defineclass -->
132+
--add-opens java.base/java.lang=ALL-UNNAMED
133+
</argLine>
134+
</configuration>
135+
</plugin>
136+
</plugins>
137+
</build>
138+
120139
</project>

flexmark-profile-pegdown/src/test/java/com/vladsch/flexmark/profile/pegdown/ComboPegdownSpecTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99
import com.vladsch.flexmark.util.data.MutableDataSet;
1010
import org.jetbrains.annotations.NotNull;
1111
import org.jetbrains.annotations.Nullable;
12-
import org.junit.Ignore;
1312
import org.junit.runners.Parameterized;
1413

1514
import java.util.List;
1615

17-
@Ignore
1816
public class ComboPegdownSpecTest extends ComboSpecTestCase {
1917
final private static String SPEC_RESOURCE = "/pegdown_spec.md";
2018
final public static @NotNull ResourceLocation RESOURCE_LOCATION = ResourceLocation.of(SPEC_RESOURCE);

0 commit comments

Comments
 (0)