src/java.base/share/classes/java/lang/reflect/Method.java
changeset 50735 2f2af62dfac7
parent 50091 05979f6ba560
child 52380 6b31efbf833e
equal deleted inserted replaced
50734:0828a0f6676b 50735:2f2af62dfac7
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   503      * <p>If the number of formal parameters required by the underlying method is
   503      * <p>If the number of formal parameters required by the underlying method is
   504      * 0, the supplied {@code args} array may be of length 0 or null.
   504      * 0, the supplied {@code args} array may be of length 0 or null.
   505      *
   505      *
   506      * <p>If the underlying method is an instance method, it is invoked
   506      * <p>If the underlying method is an instance method, it is invoked
   507      * using dynamic method lookup as documented in The Java Language
   507      * using dynamic method lookup as documented in The Java Language
   508      * Specification, Second Edition, section 15.12.4.4; in particular,
   508      * Specification, section 15.12.4.4; in particular,
   509      * overriding based on the runtime type of the target object will occur.
   509      * overriding based on the runtime type of the target object may occur.
   510      *
   510      *
   511      * <p>If the underlying method is static, the class that declared
   511      * <p>If the underlying method is static, the class that declared
   512      * the method is initialized if it has not already been initialized.
   512      * the method is initialized if it has not already been initialized.
   513      *
   513      *
   514      * <p>If the method completes normally, the value it returns is
   514      * <p>If the method completes normally, the value it returns is