langtools/test/tools/javac/options/T7022337.java
changeset 25445 603f0c93d5c9
parent 14963 974d4423c999
child 30730 d3ce7619db2c
equal deleted inserted replaced
25444:27045478cf23 25445:603f0c93d5c9
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2014, 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.
    49 
    49 
    50         String out = compile(
    50         String out = compile(
    51             "-XDrawDiagnostics",
    51             "-XDrawDiagnostics",
    52             "-d", ".",
    52             "-d", ".",
    53             "-processor", myName,
    53             "-processor", myName,
    54             "-source", "6", // explicit use of older source value without bootclasspath
    54             "-source", "8", // explicit use of older source value without bootclasspath
    55             file.getPath());
    55             file.getPath());
    56 
    56 
    57         int count = 0;
    57         int count = 0;
    58         for (String line: out.split("[\r\n]+")) {
    58         for (String line: out.split("[\r\n]+")) {
    59             if (line.contains("compiler.warn.source.no.bootclasspath"))
    59             if (line.contains("compiler.warn.source.no.bootclasspath"))