< prev index next >

langtools/test/tools/javac/T6403466.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2006, 2015, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2006, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 56,69 **** try (StandardJavaFileManager fm = tool.getStandardFileManager(null, null, null)) { Iterable<? extends JavaFileObject> files = fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(testSrcDir, self + ".java"))); Iterable<String> options = Arrays.asList( ! "-XaddExports:" ! + "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED," + "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", ! "-processorpath", testClassDir, "-processor", self, "-s", ".", "-d", "."); JavacTask task = tool.getTask(out, fm, null, options, null, files); --- 56,69 ---- try (StandardJavaFileManager fm = tool.getStandardFileManager(null, null, null)) { Iterable<? extends JavaFileObject> files = fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(testSrcDir, self + ".java"))); Iterable<String> options = Arrays.asList( ! "--add-exports", ! "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED," + "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", ! "--processor-path", testClassDir, "-processor", self, "-s", ".", "-d", "."); JavacTask task = tool.getTask(out, fm, null, options, null, files);
< prev index next >