--- old/test/tools/javac/api/TestClientCodeWrapper.java 2016-08-05 14:31:34.000000000 -0700 +++ new/test/tools/javac/api/TestClientCodeWrapper.java 2016-08-05 14:31:34.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 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 @@ -133,7 +133,7 @@ PrintWriter pw = new PrintWriter(sw); List javacOptions = Arrays.asList( - "-XaddExports:jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", + "--add-exports", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", "-extdirs", extDirs.getPath(), // for use by filemanager handleOption "-processor", TestClientCodeWrapper.class.getName() );