src/jdk.compiler/share/classes/com/sun/tools/javac/main/Arguments.java
changeset 48746 c9ab849cd2f5
parent 48054 702043a4cdeb
child 49278 31c5e0d5f4c3
equal deleted inserted replaced
48745:74be5b4ed152 48746:c9ab849cd2f5
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2018, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   593                 Option.SYSTEM, Option.MODULE_PATH, Option.ADD_MODULES,
   593                 Option.SYSTEM, Option.MODULE_PATH, Option.ADD_MODULES,
   594                 Option.ADD_EXPORTS, Option.ADD_OPENS, Option.ADD_READS,
   594                 Option.ADD_EXPORTS, Option.ADD_OPENS, Option.ADD_READS,
   595                 Option.LIMIT_MODULES,
   595                 Option.LIMIT_MODULES,
   596                 Option.PATCH_MODULE);
   596                 Option.PATCH_MODULE);
   597 
   597 
       
   598         if (lintOptions && options.isSet(Option.PARAMETERS) && !target.hasMethodParameters()) {
       
   599             log.warning(Warnings.OptionParametersUnsupported(target.name, Target.JDK1_8.name));
       
   600         }
       
   601 
   598         if (fm.hasLocation(StandardLocation.MODULE_SOURCE_PATH)) {
   602         if (fm.hasLocation(StandardLocation.MODULE_SOURCE_PATH)) {
   599             if (!options.isSet(Option.PROC, "only")
   603             if (!options.isSet(Option.PROC, "only")
   600                     && !fm.hasLocation(StandardLocation.CLASS_OUTPUT)) {
   604                     && !fm.hasLocation(StandardLocation.CLASS_OUTPUT)) {
   601                 log.error(Errors.NoOutputDir);
   605                 log.error(Errors.NoOutputDir);
   602             }
   606             }