test/langtools/tools/javac/failover/CheckAttributedTree.java
changeset 49518 d0ff431a596e
parent 47863 abe64cd683a4
child 51563 de411d537aae
equal deleted inserted replaced
49517:a387ee36e5e0 49518:d0ff431a596e
     1 /*
     1 /*
     2  * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   313             final List<Element> analyzedElems = new ArrayList<>();
   313             final List<Element> analyzedElems = new ArrayList<>();
   314             final List<CompilationUnitTree> trees = new ArrayList<>();
   314             final List<CompilationUnitTree> trees = new ArrayList<>();
   315             totalNumberOfCompilations++;
   315             totalNumberOfCompilations++;
   316             newCompilationTask()
   316             newCompilationTask()
   317                 .withWriter(pw)
   317                 .withWriter(pw)
   318                     .withOption("--should-stop:at=ATTR")
   318                     .withOption("--should-stop=at=ATTR")
   319                     .withOption("-XDverboseCompilePolicy")
   319                     .withOption("-XDverboseCompilePolicy")
   320                     .withOption("-Xdoclint:none")
   320                     .withOption("-Xdoclint:none")
   321                     .withSource(files.iterator().next())
   321                     .withSource(files.iterator().next())
   322                     .withListener(new TaskListener() {
   322                     .withListener(new TaskListener() {
   323                         public void started(TaskEvent e) {
   323                         public void started(TaskEvent e) {