# HG changeset patch # User kamg # Date 1288132862 14400 # Node ID 1f8f7240a1e29be69de64bd26035835f1033640d # Parent adadd244f5065b3f1f1c141c932fd8b5713123e6 6541462: outdated specification for CCC 6339875 Summary: Add documentation to java.lang.ClassLoader.defineClass() Reviewed-by: dcubed, darcy diff -r adadd244f506 -r 1f8f7240a1e2 jdk/src/share/classes/java/lang/ClassLoader.java --- a/jdk/src/share/classes/java/lang/ClassLoader.java Mon Oct 25 10:34:26 2010 -0700 +++ b/jdk/src/share/classes/java/lang/ClassLoader.java Tue Oct 26 18:41:02 2010 -0400 @@ -553,6 +553,13 @@ * If either off or len is negative, or if * off+len is greater than b.length. * + * @throws SecurityException + * If an attempt is made to add this class to a package that + * contains classes that were signed by a different set of + * certificates than this class, or if an attempt is made + * to define a class in a package with a fully-qualified name + * that starts with "{@code java.}". + * * @see #loadClass(String, boolean) * @see #resolveClass(Class) *