< prev index next >

src/java.base/share/classes/java/lang/reflect/Constructor.java

Print this page

        

*** 198,208 **** byte[] getAnnotationBytes() { return annotations; } /** ! * {@inheritDoc} */ @Override public Class<T> getDeclaringClass() { return clazz; } --- 198,209 ---- byte[] getAnnotationBytes() { return annotations; } /** ! * Returns the {@code Class} object representing the class that ! * declares the constructor represented by this object. */ @Override public Class<T> getDeclaringClass() { return clazz; }
*** 319,328 **** --- 320,334 ---- * constructor's formal parameter types. For example: * <pre>{@code * public java.util.Hashtable(int,float) * }</pre> * + * <p>If the constructor is declared to throw exceptions, the + * parameter list is followed by a space, followed by the word + * "{@code throws}" followed by a comma-separated list of the + * thrown exception types. + * * <p>The only possible modifiers for constructors are the access * modifiers {@code public}, {@code protected} or * {@code private}. Only one of these may appear, or none if the * constructor has default (package) access. *
*** 355,371 **** * arguments, instead of denoting the last parameter as * "<code><i>Type</i>[]</code>", it is denoted as * "<code><i>Type</i>...</code>". * * A space is used to separate access modifiers from one another ! * and from the type parameters or return type. If there are no * type parameters, the type parameter list is elided; if the type * parameter list is present, a space separates the list from the * class name. If the constructor is declared to throw * exceptions, the parameter list is followed by a space, followed * by the word "{@code throws}" followed by a ! * comma-separated list of the thrown exception types. * * <p>The only possible modifiers for constructors are the access * modifiers {@code public}, {@code protected} or * {@code private}. Only one of these may appear, or none if the * constructor has default (package) access. --- 361,377 ---- * arguments, instead of denoting the last parameter as * "<code><i>Type</i>[]</code>", it is denoted as * "<code><i>Type</i>...</code>". * * A space is used to separate access modifiers from one another ! * and from the type parameters or class name. If there are no * type parameters, the type parameter list is elided; if the type * parameter list is present, a space separates the list from the * class name. If the constructor is declared to throw * exceptions, the parameter list is followed by a space, followed * by the word "{@code throws}" followed by a ! * comma-separated list of the generic thrown exception types. * * <p>The only possible modifiers for constructors are the access * modifiers {@code public}, {@code protected} or * {@code private}. Only one of these may appear, or none if the * constructor has default (package) access.
< prev index next >