RFR: 8263102: Expand documention of Method.isBridge [v4]

Brian Burkhalter bpb at openjdk.java.net
Tue Mar 9 22:55:08 UTC 2021


On Tue, 9 Mar 2021 22:35:19 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> The existing documentation of Method.isBridge isn't terribly helpful to the reader. This RFE proposes to given a common example of how bridge methods are used. The JLS does *not* have a section discussing bridge methods in detail; bridge methods are a compilation technique for lowering the Java language to the JVM, they are not a language feature per se. The example given is not exhaustive; there can be and are other uses of bridge methods.
>> 
>> Once the text is agreed to; I'll update the copyright year as well.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Respond to review feedback.

src/java.base/share/classes/java/lang/reflect/Method.java line 581:

> 579:      * language semantics and JVM semantics.
> 580:      *
> 581:      * One example use of bridge methods is as technique for a

"a technique"

-------------

PR: https://git.openjdk.java.net/jdk/pull/2852


More information about the core-libs-dev mailing list