-
Bug
-
Resolution: Unresolved
-
P4
-
8, 17, 24
There are missing periods in the specification for the Font class:
lines 1612-1614 [1]
* obtained. The {@code String} value of this property is then
* interpreted as a {@code Font} object according to the
* specification of {@code Font.decode(String)}
lines 1782-1783 [2]
* The property value should be one of the forms accepted by
* {@code Font.decode(String)}
These problems are found [3][4] during code review forJDK-8338411 in PR 21498 [5].
[1] https://github.com/openjdk/jdk/blob/5995786dbd69ed11dd1cacb2a3ac86e3e6f43ab7/src/java.desktop/share/classes/java/awt/Font.java#L1612-L1614
[2] https://github.com/openjdk/jdk/blob/5995786dbd69ed11dd1cacb2a3ac86e3e6f43ab7/src/java.desktop/share/classes/java/awt/Font.java#L1782-L1783
[3] https://github.com/openjdk/jdk/pull/21498#discussion_r1815180719
[4] https://github.com/openjdk/jdk/pull/21498#discussion_r1815185648
[5] https://github.com/openjdk/jdk/pull/21498
lines 1612-1614 [1]
* obtained. The {@code String} value of this property is then
* interpreted as a {@code Font} object according to the
* specification of {@code Font.decode(String)}
lines 1782-1783 [2]
* The property value should be one of the forms accepted by
* {@code Font.decode(String)}
These problems are found [3][4] during code review for
[1] https://github.com/openjdk/jdk/blob/5995786dbd69ed11dd1cacb2a3ac86e3e6f43ab7/src/java.desktop/share/classes/java/awt/Font.java#L1612-L1614
[2] https://github.com/openjdk/jdk/blob/5995786dbd69ed11dd1cacb2a3ac86e3e6f43ab7/src/java.desktop/share/classes/java/awt/Font.java#L1782-L1783
[3] https://github.com/openjdk/jdk/pull/21498#discussion_r1815180719
[4] https://github.com/openjdk/jdk/pull/21498#discussion_r1815185648
[5] https://github.com/openjdk/jdk/pull/21498