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

Typo in Swing ProcessMouseEvent method documentation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 12
    • Fix Version/s: 13
    • Component/s: client-libs
    • Labels:

      Description

      space missing after {@code} tag

      https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/MenuElement.html#processMouseEvent(java.awt.event.MouseEvent,javax.swing.MenuElement%5B%5D,javax.swing.MenuSelectionManager)

      diff -r abe21b82ff7c src/java.desktop/share/classes/javax/swing/MenuElement.java
      --- a/src/java.desktop/share/classes/javax/swing/MenuElement.java Mon Dec 24 12:18:40 2018 +0530
      +++ b/src/java.desktop/share/classes/javax/swing/MenuElement.java Mon Dec 24 12:04:57 2018 -0800
      @@ -43,7 +43,7 @@
            * source being the receiving element's component. {@code path} is the
            * path of the receiving element in the menu hierarchy including the
            * receiving element itself. {@code manager} is the
      - * {@code MenuSelectionManager}for the menu hierarchy. This method should
      + * {@code MenuSelectionManager} for the menu hierarchy. This method should
            * process the {@code MouseEvent} and change the menu selection if necessary
            * by using {@code MenuSelectionManager}'s API Note: you do not have to
            * forward the event to sub-components. This is done automatically by the

        Attachments

          Activity

            People

            • Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              rcalnan Roger Calnan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: