RFR - 8210366: Typo in MethodHandles.Lookup: must be either be
Daniel Fuchs
daniel.fuchs at oracle.com
Tue Sep 4 16:39:53 UTC 2018
Hi,
This is a simple doc-only fix for a typo in MethodHandles.Lookup:
8210366: Typo in MethodHandles.Lookup: must be either be
https://bugs.openjdk.java.net/browse/JDK-8210366
patch:
----------------------------------------------------------------------------
diff --git
a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java
b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java
@@ -450,7 +450,7 @@
* independently of any {@code Lookup} object.
* <p>
* If the desired member is {@code protected}, the usual JVM rules
apply,
- * including the requirement that the lookup class must be either
be in the
+ * including the requirement that the lookup class must either be
in the
* same package as the desired member, or must inherit that member.
* (See the Java Virtual Machine Specification, sections 4.9.2,
5.4.3.5, and 6.4.)
* In addition, if the desired member is a non-static field or method
----------------------------------------------------------------------------
best regards,
-- daniel
More information about the core-libs-dev
mailing list