diff -r 7873d37f5b37 -r c7c41a044e7c test/tools/javac/cast/intersection/IntersectionTypeCastTest.java --- a/test/tools/javac/cast/intersection/IntersectionTypeCastTest.java Mon Jan 21 20:13:56 2013 +0000 +++ b/test/tools/javac/cast/intersection/IntersectionTypeCastTest.java Mon Jan 21 20:14:39 2013 +0000 @@ -287,8 +287,7 @@ final JavaCompiler tool = ToolProvider.getSystemJavaCompiler(); JavacTask ct = (JavacTask)tool.getTask(null, fm.get(), diagChecker, - Arrays.asList("-XDallowIntersectionTypes"), - null, Arrays.asList(source)); + null, null, Arrays.asList(source)); try { ct.analyze(); } catch (Throwable ex) {