langtools/test/tools/javac/annotations/neg/8022765/VerifyErroneousAnnotationsAttributed.java
changeset 39601 5b37e511ae4b
parent 30730 d3ce7619db2c
child 40835 6ab9ed1abc46
equal deleted inserted replaced
39600:83ea7c12c164 39601:5b37e511ae4b
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2016, 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.
   235 
   235 
   236     void validate(String code) throws IOException, URISyntaxException {
   236     void validate(String code) throws IOException, URISyntaxException {
   237         JavacTask task = tool.getTask(null,
   237         JavacTask task = tool.getTask(null,
   238                                       fm,
   238                                       fm,
   239                                       devNull,
   239                                       devNull,
   240                                       Arrays.asList("-XDshouldStopPolicy=FLOW"),
   240                                       Arrays.asList("-Xshouldstop:at=FLOW"),
   241                                       null,
   241                                       null,
   242                                       Arrays.asList(new MyFileObject(code)));
   242                                       Arrays.asList(new MyFileObject(code)));
   243 
   243 
   244         final Trees trees = Trees.instance(task);
   244         final Trees trees = Trees.instance(task);
   245         final CompilationUnitTree cut = task.parse().iterator().next();
   245         final CompilationUnitTree cut = task.parse().iterator().next();