2727
2828import de .learnlib .example .aaar .AlternatingBitExampleExplicit ;
2929import de .learnlib .example .aaar .AlternatingBitExampleGeneric ;
30- import net .automatalib .common .util .system .JVMUtil ;
3130import net .automatalib .modelchecker .ltsmin .LTSminUtil ;
3231import net .automatalib .modelchecker .ltsmin .LTSminVersion ;
3332import org .mockito .MockedStatic ;
@@ -61,7 +60,7 @@ public void testAAARAlternatingBitExampleGeneric() throws InterruptedException,
6160 SwingUtilities .invokeAndWait (() -> {
6261 try {
6362 AlternatingBitExampleGeneric .main (new String [0 ]);
64- } catch (IOException e ) {
63+ } catch (IOException | InterruptedException e ) {
6564 throw new RuntimeException (e );
6665 }
6766 });
@@ -73,7 +72,7 @@ public void testAAARAlternatingBitExampleExplicit() throws InterruptedException,
7372 SwingUtilities .invokeAndWait (() -> {
7473 try {
7574 AlternatingBitExampleExplicit .main (new String [0 ]);
76- } catch (IOException e ) {
75+ } catch (IOException | InterruptedException e ) {
7776 throw new RuntimeException (e );
7877 }
7978 });
@@ -174,11 +173,11 @@ public void testExample3() throws InvocationTargetException, InterruptedExceptio
174173 }
175174
176175 private static boolean isJVMCompatible () {
177- return JVMUtil . getCanonicalSpecVersion () == 11 ;
176+ return Runtime . version (). feature () == 11 ;
178177 }
179178
180179 private static void requireJVMCompatibility () {
181- if (JVMUtil . getCanonicalSpecVersion () != 11 ) {
180+ if (Runtime . version (). feature () != 11 ) {
182181 throw new SkipException ("The headless AWT environment currently only works with Java 11 or <=8" );
183182 }
184183 }
0 commit comments