-
Bug
-
Resolution: Fixed
-
P3
-
10, 11
-
b22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8207099 | 12 | Sergey Bylokhov | P3 | Resolved | Fixed | b03 |
JDK-8207450 | 11.0.2 | Sergey Bylokhov | P3 | Resolved | Fixed | b01 |
JDK-8207560 | 11.0.1 | Sergey Bylokhov | P3 | Resolved | Fixed | b02 |
There are cases where & is displayed directly in some Swing docs, meaning it appears as & in the generated HTML.
There's a funny case in JPanel.java, line 130:
* Returns the look and feel (L&F) object that renders this component.
But more interesting, there are a number of places in @BeanProperty annotations, where `L&F` is written as `L&F` ... even though the string is a simple Java String, and not appearing in the context of a javadoc comment.
Here's the 'grep' output for `&` in the Swing classes, in a current docs build.
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JToggleButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/plaf/class-use/PanelUI.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JFileChooser.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="Sets whether the approve &amp; cancel buttons are shown.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JFileChooser.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="The L&amp;F object that renders this component.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="The minimum location of the divider from the L&amp;F.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JCheckBox.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JRadioButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
But more interesting, there are a number of places in @BeanProperty annotations, where `L&F` is written as `L&F` ... even those the string is a simple Java String, and not appearing in the context of a javadoc comment.
Here's the 'grep' output for `&amp;` in the Swing classes, in a current docs build.
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JToggleButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/plaf/class-use/PanelUI.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JFileChooser.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="Sets whether the approve &amp; cancel buttons are shown.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JFileChooser.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="The L&amp;F object that renders this component.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="The minimum location of the divider from the L&amp;F.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JCheckBox.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JRadioButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
There's a funny case in JPanel.java, line 130:
* Returns the look and feel (L&amp;F) object that renders this component.
But more interesting, there are a number of places in @BeanProperty annotations, where `L&F` is written as `L&F` ... even though the string is a simple Java String, and not appearing in the context of a javadoc comment.
Here's the 'grep' output for `&amp;` in the Swing classes, in a current docs build.
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JToggleButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/plaf/class-use/PanelUI.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JFileChooser.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="Sets whether the approve &amp; cancel buttons are shown.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JFileChooser.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="The L&amp;F object that renders this component.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="The minimum location of the divider from the L&amp;F.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JCheckBox.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JRadioButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
But more interesting, there are a number of places in @BeanProperty annotations, where `L&F` is written as `L&F` ... even those the string is a simple Java String, and not appearing in the context of a javadoc comment.
Here's the 'grep' output for `&amp;` in the Swing classes, in a current docs build.
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JPanel.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JToggleButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/plaf/class-use/PanelUI.html:<div class="block">Returns the look and feel (L&amp;F) object that renders this component.</div>
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JFileChooser.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="Sets whether the approve &amp; cancel buttons are shown.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JFileChooser.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="The L&amp;F object that renders this component.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JSplitPane.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="The minimum location of the divider from the L&amp;F.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JCheckBox.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class")
build/linux-x86_64-normal-server-release/images/docs/api/java.desktop/javax/swing/JRadioButton.html: <a href="../../java/beans/BeanProperty.html#description()">description</a>="A string that specifies the name of the L&amp;F class.")
- backported by
-
JDK-8207099 & is displayed in some Swing docs
- Resolved
-
JDK-8207450 & is displayed in some Swing docs
- Resolved
-
JDK-8207560 & is displayed in some Swing docs
- Resolved
- duplicates
-
JDK-8208497 JPanel.getUI() documentation contains "&" instead of ampersand
- Closed
- relates to
-
JDK-8185161 doclet creates double-escaped entities
- Open
- links to
(1 links to)