mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8265174: Update Class.getDeclaredMethods to discuss synthetic and bridge methods
Reviewed-by: jfranck
This commit is contained in:
parent
ffb3771816
commit
80026d81a4
5 changed files with 27 additions and 2 deletions
|
@ -784,6 +784,9 @@ public final class Class<T> implements java.io.Serializable,
|
|||
*
|
||||
* @jls 13.1 The Form of a Binary
|
||||
* @jvms 4.1 The {@code ClassFile} Structure
|
||||
* @see <a
|
||||
* href="{@docRoot}/java.base/java/lang/reflect/package-summary.html#LanguageJvmModel">Java
|
||||
* programming language and JVM modeling in core reflection</a>
|
||||
* @since 1.5
|
||||
*/
|
||||
public boolean isSynthetic() {
|
||||
|
@ -2402,6 +2405,10 @@ public final class Class<T> implements java.io.Serializable,
|
|||
* declared methods of the class or interface represented by this {@code
|
||||
* Class} object, including public, protected, default (package)
|
||||
* access, and private methods, but excluding inherited methods.
|
||||
* The declared methods may include methods <em>not</em> in the
|
||||
* source of the class or interface, including {@linkplain
|
||||
* Method#isBridge bridge methods} and other {@linkplain
|
||||
* Executable#isSynthetic synthetic} methods added by compilers.
|
||||
*
|
||||
* <p> If this {@code Class} object represents a class or interface that
|
||||
* has multiple declared methods with the same name and parameter types,
|
||||
|
@ -2446,6 +2453,9 @@ public final class Class<T> implements java.io.Serializable,
|
|||
*
|
||||
* @jls 8.2 Class Members
|
||||
* @jls 8.4 Method Declarations
|
||||
* @see <a
|
||||
* href="{@docRoot}/java.base/java/lang/reflect/package-summary.html#LanguageJvmModel">Java
|
||||
* programming language and JVM modeling in core reflection</a>
|
||||
* @since 1.1
|
||||
*/
|
||||
@CallerSensitive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue