test/tools/javac/cast/intersection/IntersectionTypeCastTest.java

changeset 1511
c7c41a044e7c
parent 1482
954541f13717
child 1520
5c956be64b9e
     1.1 --- a/test/tools/javac/cast/intersection/IntersectionTypeCastTest.java	Mon Jan 21 20:13:56 2013 +0000
     1.2 +++ b/test/tools/javac/cast/intersection/IntersectionTypeCastTest.java	Mon Jan 21 20:14:39 2013 +0000
     1.3 @@ -287,8 +287,7 @@
     1.4          final JavaCompiler tool = ToolProvider.getSystemJavaCompiler();
     1.5  
     1.6          JavacTask ct = (JavacTask)tool.getTask(null, fm.get(), diagChecker,
     1.7 -                Arrays.asList("-XDallowIntersectionTypes"),
     1.8 -                null, Arrays.asList(source));
     1.9 +                null, null, Arrays.asList(source));
    1.10          try {
    1.11              ct.analyze();
    1.12          } catch (Throwable ex) {

mercurial