langtools/test/tools/javac/options/release/ReleaseOptionClashes.java
changeset 42270 3bd3e7e378b5
parent 40763 209113892b0d
child 42408 d6f09ae68eab
equal deleted inserted replaced
42268:3ef9e17b383a 42270:3bd3e7e378b5
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 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.
    80         }
    80         }
    81         System.out.println("Test PASSED.  Running javac again to see localized output:");
    81         System.out.println("Test PASSED.  Running javac again to see localized output:");
    82         compiler.run(null, null, System.out, options.toArray(new String[0]));
    82         compiler.run(null, null, System.out, options.toArray(new String[0]));
    83     }
    83     }
    84 
    84 
    85     ClassLoader cl = ToolProvider.getSystemToolClassLoader();
       
    86     Tool compiler = ToolProvider.getSystemJavaCompiler();
    85     Tool compiler = ToolProvider.getSystemJavaCompiler();
       
    86     ClassLoader cl = compiler.getClass().getClassLoader();
    87 }
    87 }