< prev index next >

src/java.base/share/classes/java/lang/Package.java

Print this page

        

@@ -109,10 +109,12 @@
  * @see <a href="../../../technotes/guides/jar/jar.html#sealing">
  * The JAR File Specification: Package Sealing</a>
  * @see ClassLoader#definePackage(String, String, String, String, String, String, String, URL)
  *
  * @since 1.2
+ * @revised 9
+ * @spec JPMS
  */
 public class Package extends NamedPackage implements java.lang.reflect.AnnotatedElement {
     /**
      * Return the name of this package.
      *

@@ -205,10 +207,13 @@
     /**
      * Returns the vendor that implemented this package, {@code null}
      * is returned if it is not known.
      * @return the vendor that implemented this package, {@code null}
      * is returned if it is not known.
+     *
+     * @revised 9
+     * @spec JPMS
      */
     public String getImplementationVendor() {
         return versionInfo.implVendor;
     }
 

@@ -332,10 +337,13 @@
      * a child loader.  A more robust approach is to use the
      * {@link ClassLoader#getDefinedPackage} method which returns
      * a {@code Package} for the specified class loader.
      *
      * @see ClassLoader#getDefinedPackage
+     *
+     * @revised 9
+     * @spec JPMS
      */
     @CallerSensitive
     @Deprecated(since="9")
     @SuppressWarnings("deprecation")
     public static Package getPackage(String name) {

@@ -354,10 +362,13 @@
      *
      * @return  The array of {@code Package} objects defined by this
      *          class loader and its ancestors
      *
      * @see ClassLoader#getDefinedPackages
+     *
+     * @revised 9
+     * @spec JPMS
      */
     @CallerSensitive
     public static Package[] getPackages() {
         ClassLoader cl = ClassLoader.getClassLoader(Reflection.getCallerClass());
         return cl != null ? cl.getPackages() : BootLoader.packages().toArray(Package[]::new);
< prev index next >