-
Bug
-
Resolution: Fixed
-
P2
-
1.3.1, 7, 8, 9
-
b127
-
generic, x86
-
generic, windows_2000
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2221289 | 7 | Unassigned | P2 | Closed | Won't Fix | |
JDK-2185625 | 1.2.1 | Unassigned | P2 | Closed | Won't Fix |
Name: md23716 Date: 08/29/2001
Using 1.3.1-b24 on Windows 2000 5.00.2195.
Compile TextArea1.java >>>
import java.awt.*;
import java.awt.geom.*;
import java.awt.font.*;
class TextArea1
{
public static void main(String args[])
{
TextLayout l1=new TextLayout("Hello",new Font("Helvetica",Font.PLAIN,12),new FontRenderContext(new AffineTransform(),true,true));
TextLayout l2=new TextLayout("Hello",new Font("Helvetica",Font.PLAIN,12),new FontRenderContext(new AffineTransform(),true,true));
System.out.println(l1.equals(l2));
}
}
>>>
If you run java TextArea1 then the output shows as false.
The suggested fix is to override the equals method in the TextLine.java file.
======================================================================
###@###.### 2001-08-29
A test case was provided by the submitter of this bug in a separate email:
###@###.### 2001-08-29
Removed test case from this bug - it was intended for another bug ID (apologies)
- backported by
-
JDK-2185625 TextLayout equals method is not implemented
- Closed
-
JDK-2221289 TextLayout equals method is not implemented
- Closed
- csr of
-
CCC-4497648 TextLayout equals method is not implemented
- Closed
- duplicates
-
JDK-6906103 java.awt.font.TextLayout.equals() works incorrectly
- Closed
- relates to
-
JDK-6588409 Only one of Object.equals and Object.hashCode overriden
- Open