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

Print this page

        

*** 314,324 **** * if the class loader created the package * instance with the appropriate attributes. Typically those * attributes are defined in the manifests that accompany * the classes. * ! * @param class the class to get the package of. * @return the package of the class. It may be null if no package * information is available from the archive or codebase. */ static Package getPackage(Class<?> c) { String name = c.getName(); int i = name.lastIndexOf('.'); --- 314,324 ---- * if the class loader created the package * instance with the appropriate attributes. Typically those * attributes are defined in the manifests that accompany * the classes. * ! * @param c the class to get the package of. * @return the package of the class. It may be null if no package * information is available from the archive or codebase. */ static Package getPackage(Class<?> c) { String name = c.getName(); int i = name.lastIndexOf('.');
*** 409,426 **** } /** * Construct a package instance with the specified version * information. ! * @param pkgName the name of the package * @param spectitle the title of the specification * @param specversion the version of the specification * @param specvendor the organization that maintains the specification * @param impltitle the title of the implementation * @param implversion the version of the implementation * @param implvendor the organization that maintains the implementation - * @return a new package for containing the specified information. */ Package(String name, String spectitle, String specversion, String specvendor, String impltitle, String implversion, String implvendor, URL sealbase, ClassLoader loader) --- 409,425 ---- } /** * Construct a package instance with the specified version * information. ! * @param name the name of the package * @param spectitle the title of the specification * @param specversion the version of the specification * @param specvendor the organization that maintains the specification * @param impltitle the title of the implementation * @param implversion the version of the implementation * @param implvendor the organization that maintains the implementation */ Package(String name, String spectitle, String specversion, String specvendor, String impltitle, String implversion, String implvendor, URL sealbase, ClassLoader loader)