equal
deleted
inserted
replaced
725 * @see #resolveClass(Class) |
725 * @see #resolveClass(Class) |
726 * |
726 * |
727 * @deprecated Replaced by {@link #defineClass(String, byte[], int, int) |
727 * @deprecated Replaced by {@link #defineClass(String, byte[], int, int) |
728 * defineClass(String, byte[], int, int)} |
728 * defineClass(String, byte[], int, int)} |
729 */ |
729 */ |
730 @Deprecated |
730 @Deprecated(since="1.1") |
731 protected final Class<?> defineClass(byte[] b, int off, int len) |
731 protected final Class<?> defineClass(byte[] b, int off, int len) |
732 throws ClassFormatError |
732 throws ClassFormatError |
733 { |
733 { |
734 return defineClass(null, b, off, len, null); |
734 return defineClass(null, b, off, len, null); |
735 } |
735 } |
2010 * {@link ClassLoader#getDefinedPackage} method which returns |
2010 * {@link ClassLoader#getDefinedPackage} method which returns |
2011 * a {@code Package} for the specified class loader. |
2011 * a {@code Package} for the specified class loader. |
2012 * |
2012 * |
2013 * @since 1.2 |
2013 * @since 1.2 |
2014 */ |
2014 */ |
2015 @Deprecated |
2015 @Deprecated(since="9") |
2016 protected Package getPackage(String name) { |
2016 protected Package getPackage(String name) { |
2017 Package pkg = getDefinedPackage(name); |
2017 Package pkg = getDefinedPackage(name); |
2018 if (pkg == null) { |
2018 if (pkg == null) { |
2019 if (parent != null) { |
2019 if (parent != null) { |
2020 pkg = parent.getPackage(name); |
2020 pkg = parent.getPackage(name); |