< prev index next >

test/tools/javac/api/T6265137.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 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) 2005, 2017, 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.
*** 50,58 **** }; try (StandardJavaFileManager fm = javac.getStandardFileManager(dl, null, null)) { String srcdir = System.getProperty("test.src"); Iterable<? extends JavaFileObject> files = fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(srcdir, "T6265137a.java"))); ! javac.getTask(null, fm, dl, Arrays.asList("-target","9"), null, files).call(); } } } --- 50,58 ---- }; try (StandardJavaFileManager fm = javac.getStandardFileManager(dl, null, null)) { String srcdir = System.getProperty("test.src"); Iterable<? extends JavaFileObject> files = fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(srcdir, "T6265137a.java"))); ! javac.getTask(null, fm, dl, Arrays.asList("-target","10"), null, files).call(); } } }
< prev index next >