@@ -317,6 +317,9 @@ public void testJRuntimeArguments()
317
317
expectedArguments .add ( "-source" );
318
318
expectedArguments .add ( "1.3" );
319
319
320
+ // unshared table
321
+ expectedArguments .add ( "-XDuseUnsharedTable=true" );
322
+
320
323
// customCompilerArguments
321
324
Map <String , String > customCompilerArguments = new LinkedHashMap <>();
322
325
customCompilerArguments .put ( "-J-Duser.language=en_us" , null );
@@ -358,6 +361,9 @@ public void testModulePathAnnotations() throws Exception
358
361
expectedArguments .add ( "--release" );
359
362
expectedArguments .add ( "9" );
360
363
364
+ // unshared table
365
+ expectedArguments .add ( "-XDuseUnsharedTable=true" );
366
+
361
367
internalTest ( compilerConfiguration , expectedArguments , source );
362
368
}
363
369
@@ -386,6 +392,9 @@ public void testModulePath() throws Exception
386
392
expectedArguments .add ( "-source" );
387
393
expectedArguments .add ( "1.3" );
388
394
395
+ // unshared table
396
+ expectedArguments .add ( "-XDuseUnsharedTable=true" );
397
+
389
398
internalTest ( compilerConfiguration , expectedArguments );
390
399
}
391
400
@@ -412,6 +421,9 @@ public void testModuleVersion()
412
421
expectedArguments .add ( "--module-version" );
413
422
expectedArguments .add ( "1.2.0-SNAPSHOT" );
414
423
424
+ // unshared table
425
+ expectedArguments .add ( "-XDuseUnsharedTable=true" );
426
+
415
427
internalTest ( compilerConfiguration , expectedArguments );
416
428
}
417
429
@@ -431,7 +443,10 @@ public void testReleaseVersion()
431
443
compilerConfiguration .setReleaseVersion ( "6" );
432
444
expectedArguments .add ( "--release" );
433
445
expectedArguments .add ( "6" );
434
-
446
+
447
+ // unshared table
448
+ expectedArguments .add ( "-XDuseUnsharedTable=true" );
449
+
435
450
internalTest ( compilerConfiguration , expectedArguments );
436
451
}
437
452
@@ -456,7 +471,10 @@ public void testFailOnWarning()
456
471
expectedArguments .add ( "1.1" );
457
472
expectedArguments .add ( "-source" );
458
473
expectedArguments .add ( "1.3" );
459
-
474
+
475
+ // unshared table
476
+ expectedArguments .add ( "-XDuseUnsharedTable=true" );
477
+
460
478
internalTest ( compilerConfiguration , expectedArguments );
461
479
}
462
480
@@ -485,7 +503,10 @@ public void testMultipleAddExports()
485
503
compilerConfiguration .addCompilerCustomArgument ( "--add-exports" , "FROM-MOD/package2=OTHER-MOD" );
486
504
expectedArguments .add ( "--add-exports" );
487
505
expectedArguments .add ( "FROM-MOD/package2=OTHER-MOD" );
488
-
506
+
507
+ // unshared table
508
+ expectedArguments .add ( "-XDuseUnsharedTable=true" );
509
+
489
510
internalTest ( compilerConfiguration , expectedArguments );
490
511
}
491
512
@@ -630,5 +651,7 @@ private void populateArguments( CompilerConfiguration compilerConfiguration, Lis
630
651
expectedArguments .add ( "foo" );
631
652
632
653
expectedArguments .add ( "bar" );
654
+
655
+ expectedArguments .add ( "-XDuseUnsharedTable=true" );
633
656
}
634
657
}
0 commit comments