8176492: @since value errors in java.compiler module jdk-9+161
authorjjg
Mon, 13 Mar 2017 11:27:30 -0700
changeset 58262340259b3155
parent 5825 b6b9c65b47b4
child 5827 d33b9bd8b48d
child 5829 efaff4abb139
child 5830 95d65add96a9
8176492: @since value errors in java.compiler module
Reviewed-by: darcy
src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor9.java
src/java.compiler/share/classes/javax/tools/DocumentationTool.java
src/java.compiler/share/classes/javax/tools/JavaCompiler.java
src/java.compiler/share/classes/javax/tools/StandardJavaFileManager.java
src/java.compiler/share/classes/javax/tools/StandardLocation.java
     1.1 --- a/src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor9.java	Mon Mar 13 10:59:56 2017 -0700
     1.2 +++ b/src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor9.java	Mon Mar 13 11:27:30 2017 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -69,7 +69,7 @@
    1.11   *
    1.12   * @see SimpleTypeVisitor6
    1.13   * @see SimpleTypeVisitor7
    1.14 - * @since 1.8
    1.15 + * @since 9
    1.16   */
    1.17  @SupportedSourceVersion(RELEASE_9)
    1.18  public class SimpleTypeVisitor9<R, P> extends SimpleTypeVisitor8<R, P> {
     2.1 --- a/src/java.compiler/share/classes/javax/tools/DocumentationTool.java	Mon Mar 13 10:59:56 2017 -0700
     2.2 +++ b/src/java.compiler/share/classes/javax/tools/DocumentationTool.java	Mon Mar 13 11:27:30 2017 -0700
     2.3 @@ -33,6 +33,8 @@
     2.4  /**
     2.5   * Interface to invoke Java&trade; programming language documentation tools from
     2.6   * programs.
     2.7 + *
     2.8 + * @since 1.8
     2.9   */
    2.10  public interface DocumentationTool extends Tool, OptionChecker {
    2.11      /**
    2.12 @@ -130,6 +132,7 @@
    2.13           * @throws IllegalArgumentException may be thrown for some
    2.14           *      invalid module names
    2.15           * @throws IllegalStateException if the task has started
    2.16 +         * @since 9
    2.17           */
    2.18          void addModules(Iterable<String> moduleNames);
    2.19  
     3.1 --- a/src/java.compiler/share/classes/javax/tools/JavaCompiler.java	Mon Mar 13 10:59:56 2017 -0700
     3.2 +++ b/src/java.compiler/share/classes/javax/tools/JavaCompiler.java	Mon Mar 13 11:27:30 2017 -0700
     3.3 @@ -305,6 +305,7 @@
     3.4           * @throws IllegalArgumentException may be thrown for some
     3.5           *      invalid module names
     3.6           * @throws IllegalStateException if the task has started
     3.7 +         * @since 9
     3.8           */
     3.9          void addModules(Iterable<String> moduleNames);
    3.10  
     4.1 --- a/src/java.compiler/share/classes/javax/tools/StandardJavaFileManager.java	Mon Mar 13 10:59:56 2017 -0700
     4.2 +++ b/src/java.compiler/share/classes/javax/tools/StandardJavaFileManager.java	Mon Mar 13 11:27:30 2017 -0700
     4.3 @@ -349,6 +349,8 @@
     4.4       *
     4.5       * @see setLocation
     4.6       * @see setLocationFromPaths
     4.7 +     *
     4.8 +     * @since 9
     4.9       */
    4.10      default void setLocationForModule(Location location, String moduleName,
    4.11              Collection<? extends Path> paths) throws IOException {
     5.1 --- a/src/java.compiler/share/classes/javax/tools/StandardLocation.java	Mon Mar 13 10:59:56 2017 -0700
     5.2 +++ b/src/java.compiler/share/classes/javax/tools/StandardLocation.java	Mon Mar 13 11:27:30 2017 -0700
     5.3 @@ -1,5 +1,5 @@
     5.4  /*
     5.5 - * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
     5.6 + * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
     5.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5.8   *
     5.9   * This code is free software; you can redistribute it and/or modify it
    5.10 @@ -111,8 +111,8 @@
    5.11  
    5.12      /**
    5.13       * Location to search for module patches.
    5.14 +     * @spec JPMS
    5.15       * @since 9
    5.16 -     * @spec JPMS
    5.17       */
    5.18      PATCH_MODULE_PATH;
    5.19  
    5.20 @@ -165,6 +165,10 @@
    5.21          }
    5.22      }
    5.23  
    5.24 +    /**
    5.25 +     * {@inheritDoc}
    5.26 +     * @since 9
    5.27 +     */
    5.28      @Override
    5.29      public boolean isModuleOrientedLocation() {
    5.30          switch (this) {