-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
ladybird
-
sparc
-
solaris_2.5
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2020663 | 1.4.0 | Jennifer Ball | P4 | Resolved | Fixed | beta2 |
Name: mgC56079 Date: 05/18/98
--- Here is the javadoc (jdk1.2beta4F) ---
/**
* Returns the specified font using the name passed in.
* @param str the name.
* @since JDK1.1
*/
public static Font decode(String str)
---
Font.decode of jdk1.2beta4F is incompatible with the one of 1.1.x.
decode("Name-bold") returns new Font("Name", Font.PLAIN, 12) under 1.1.x
but returns new Font("Name", Font.BOLD, 12) under 1.2beta4F.
This causes jck1.1.6, jck1.2beta2 test failure:
api/java_awt/Font/manual.html#Decode
It is not crear from the spec which code is correct.
JCK regression problem cannot be fixed unless the precise spec is available.
The spec should be updated.
======================================================================
- backported by
-
JDK-2020663 need spec for java.awt.Font.decode(String)
-
- Resolved
-