OpenJDK / portola / portola
changeset 27846:8a7a3a187e24
8058445: Javac throws exception when displaying info
Reviewed-by: vromero, jfranck
author | jjg |
---|---|
date | Thu, 20 Nov 2014 11:00:29 -0800 |
parents | afce9de2de10 |
children | 3b63f22ce42b |
files | langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Main.java langtools/test/tools/javac/main/T8058445.java |
diffstat | 2 files changed, 37 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Main.java Thu Nov 20 09:43:13 2014 -0800 +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Main.java Thu Nov 20 11:00:29 2014 -0800 @@ -160,6 +160,8 @@ Option.HELP.process(new OptionHelper.GrumpyHelper(log) { @Override public String getOwnName() { return ownName; } + @Override + public void put(String name, String value) { } }, "-help"); return Result.CMDERR; }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/test/tools/javac/main/T8058445.java Thu Nov 20 11:00:29 2014 -0800 @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2014, 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. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* + * @test + * @bug 8058445 + * @summary javac throws exception when displaying info + */ + +public class T8058445 { + public static void main(String... ignore) throws Exception { + String[] args = { }; + com.sun.tools.javac.Main.compile(args); + } +}