test/langtools/tools/javac/processing/model/completionfailure/NoAbortForBadClassFile.java
changeset 50735 2f2af62dfac7
parent 50712 df7094f72869
equal deleted inserted replaced
50734:0828a0f6676b 50735:2f2af62dfac7
     1 /*
     1 /*
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 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.
   119         Path out = base.resolve("out");
   119         Path out = base.resolve("out");
   120         tb.createDirectories(out);
   120         tb.createDirectories(out);
   121 
   121 
   122         new toolbox.JavacTask(tb)
   122         new toolbox.JavacTask(tb)
   123                 .outdir(out)
   123                 .outdir(out)
       
   124                 .options("-source", "10", "-target", "10")
   124                 .files(tb.findJavaFiles(src))
   125                 .files(tb.findJavaFiles(src))
   125                 .run(Expect.SUCCESS)
   126                 .run(Expect.SUCCESS)
   126                 .writeAll()
   127                 .writeAll()
   127                 .getOutputLines(Task.OutputKind.DIRECT);
   128                 .getOutputLines(Task.OutputKind.DIRECT);
   128 
   129