Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8200381

Typos in javadoc - missing verb "be" and alike

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b14

      Description

      diff --git a/src/java.base/share/classes/java/lang/invoke/VarHandle.java b/src/java.base/share/classes/java/lang/invoke/VarHandle.java
      --- a/src/java.base/share/classes/java/lang/invoke/VarHandle.java
      +++ b/src/java.base/share/classes/java/lang/invoke/VarHandle.java
      @@ -100,7 +100,7 @@
        * is {@code String}. The access mode type for {@code compareAndSet} on this
        * VarHandle instance would be
        * {@code (String[] c1, int c2, String expectedValue, String newValue)boolean}.
      - * Such a VarHandle instance may produced by the
      + * Such a VarHandle instance may be produced by the
        * {@link MethodHandles#arrayElementVarHandle(Class) array factory method} and
        * access array elements as follows:
        * <pre> {@code
      diff --git a/src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java b/src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java
      --- a/src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java
      +++ b/src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java
      @@ -1414,7 +1414,7 @@
            * Generate code to invoke the Class.forName with the name of the given
            * class to get its Class object at runtime. The code is written to
            * the supplied stream. Note that the code generated by this method
      - * may caused the checked ClassNotFoundException to be thrown.
      + * may cause the checked ClassNotFoundException to be thrown.
            */
           private void codeClassForName(Class<?> cl, DataOutputStream out)
               throws IOException
      diff --git a/src/java.base/share/classes/sun/security/ssl/AppInputStream.java b/src/java.base/share/classes/sun/security/ssl/AppInputStream.java
      --- a/src/java.base/share/classes/sun/security/ssl/AppInputStream.java
      +++ b/src/java.base/share/classes/sun/security/ssl/AppInputStream.java
      @@ -182,7 +182,7 @@
            * Skip n bytes. This implementation is somewhat less efficient
            * than possible, but not badly so (redundant copy). We reuse
            * the read() code to keep things simpler. Note that SKIP_ARRAY
      - * is static and may garbled by concurrent use, but we are not interested
      + * is static and may be garbled by concurrent use, but we are not interested
            * in the data anyway.
            */
           @Override

        Attachments

          Activity

            People

            • Assignee:
              igerasim Ivan Gerasimov
              Reporter:
              igerasim Ivan Gerasimov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: