@@ -238,15 +238,15 @@ public void testExecute3() {
238
238
= "[" ;
239
239
MethodScriptCompiler .execute (MethodScriptCompiler .compile (MethodScriptCompiler .lex (script , null , null , true ), null , envs ), env , null , null );
240
240
fail ("Test passed, but wasn't supposed to" );
241
- } catch (ConfigCompileException | ConfigCompileGroupException ex ) {
241
+ } catch (AbstractCompileException ex ) {
242
242
//Passed
243
243
}
244
244
try {
245
245
String script
246
246
= "]" ;
247
247
MethodScriptCompiler .execute (MethodScriptCompiler .compile (MethodScriptCompiler .lex (script , null , null , true ), null , envs ), env , null , null );
248
248
fail ("Test passed, but wasn't supposed to" );
249
- } catch (ConfigCompileException | ConfigCompileGroupException ex ) {
249
+ } catch (AbstractCompileException ex ) {
250
250
//Passed
251
251
}
252
252
}
@@ -450,7 +450,7 @@ public void testCompile1() {
450
450
String config = "/cmd [$p] $q = msg('')" ;
451
451
MethodScriptCompiler .preprocess (MethodScriptCompiler .lex (config , null , null , false ), envs ).get (0 ).compile (env );
452
452
fail ("Test passed, but wasn't supposed to" );
453
- } catch (ConfigCompileException | ConfigCompileGroupException ex ) {
453
+ } catch (AbstractCompileException ex ) {
454
454
//Passed
455
455
}
456
456
}
@@ -495,7 +495,7 @@ public void testCompile2() {
495
495
String config = "/cmd [$p=player()] = msg('')" ;
496
496
MethodScriptCompiler .preprocess (MethodScriptCompiler .lex (config , null , null , false ), envs ).get (0 ).compile (env );
497
497
fail ("Test passed, but wasn't supposed to" );
498
- } catch (ConfigCompileException | ConfigCompileGroupException ex ) {
498
+ } catch (AbstractCompileException ex ) {
499
499
//Passed
500
500
}
501
501
}
0 commit comments