8161020: javac, fold stop compilation options

Reviewed-by: mcimadamore
This commit is contained in:
Vicente Romero 2016-07-11 15:27:52 -07:00
parent 0917774834
commit a7cc024b53
30 changed files with 67 additions and 51 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -311,7 +311,7 @@ public class CheckAttributedTree {
final List<CompilationUnitTree> trees = new ArrayList<>();
Iterable<? extends Element> elems = newCompilationTask()
.withWriter(pw)
.withOption("-XDshouldStopPolicy=ATTR")
.withOption("-Xshouldstop:at=ATTR")
.withOption("-XDverboseCompilePolicy")
.withSource(files.iterator().next())
.withListener(new TaskListener() {