changeset 4041:2340259b3155 jdk-9+161

8176492: @since value errors in java.compiler module Reviewed-by: darcy
author jjg
date Mon, 13 Mar 2017 11:27:30 -0700
parents b6b9c65b47b4
children efaff4abb139 95d65add96a9
files 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
diffstat 5 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor9.java	Mon Mar 13 10:59:56 2017 -0700
+++ b/src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor9.java	Mon Mar 13 11:27:30 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2017, 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
@@ -69,7 +69,7 @@
  *
  * @see SimpleTypeVisitor6
  * @see SimpleTypeVisitor7
- * @since 1.8
+ * @since 9
  */
 @SupportedSourceVersion(RELEASE_9)
 public class SimpleTypeVisitor9<R, P> extends SimpleTypeVisitor8<R, P> {
--- a/src/java.compiler/share/classes/javax/tools/DocumentationTool.java	Mon Mar 13 10:59:56 2017 -0700
+++ b/src/java.compiler/share/classes/javax/tools/DocumentationTool.java	Mon Mar 13 11:27:30 2017 -0700
@@ -33,6 +33,8 @@
 /**
  * Interface to invoke Java&trade; programming language documentation tools from
  * programs.
+ *
+ * @since 1.8
  */
 public interface DocumentationTool extends Tool, OptionChecker {
     /**
@@ -130,6 +132,7 @@
          * @throws IllegalArgumentException may be thrown for some
          *      invalid module names
          * @throws IllegalStateException if the task has started
+         * @since 9
          */
         void addModules(Iterable<String> moduleNames);
 
--- a/src/java.compiler/share/classes/javax/tools/JavaCompiler.java	Mon Mar 13 10:59:56 2017 -0700
+++ b/src/java.compiler/share/classes/javax/tools/JavaCompiler.java	Mon Mar 13 11:27:30 2017 -0700
@@ -305,6 +305,7 @@
          * @throws IllegalArgumentException may be thrown for some
          *      invalid module names
          * @throws IllegalStateException if the task has started
+         * @since 9
          */
         void addModules(Iterable<String> moduleNames);
 
--- a/src/java.compiler/share/classes/javax/tools/StandardJavaFileManager.java	Mon Mar 13 10:59:56 2017 -0700
+++ b/src/java.compiler/share/classes/javax/tools/StandardJavaFileManager.java	Mon Mar 13 11:27:30 2017 -0700
@@ -349,6 +349,8 @@
      *
      * @see setLocation
      * @see setLocationFromPaths
+     *
+     * @since 9
      */
     default void setLocationForModule(Location location, String moduleName,
             Collection<? extends Path> paths) throws IOException {
--- a/src/java.compiler/share/classes/javax/tools/StandardLocation.java	Mon Mar 13 10:59:56 2017 -0700
+++ b/src/java.compiler/share/classes/javax/tools/StandardLocation.java	Mon Mar 13 11:27:30 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2017, 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
@@ -111,8 +111,8 @@
 
     /**
      * Location to search for module patches.
+     * @spec JPMS
      * @since 9
-     * @spec JPMS
      */
     PATCH_MODULE_PATH;
 
@@ -165,6 +165,10 @@
         }
     }
 
+    /**
+     * {@inheritDoc}
+     * @since 9
+     */
     @Override
     public boolean isModuleOrientedLocation() {
         switch (this) {