United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6603975 ClassCastException in the Font(Map)
JDK-6603975 : ClassCastException in the Font(Map)

Details
Type:
Bug
Submit Date:
2007-09-12
Status:
Closed
Updated Date:
2011-04-05
Project Name:
JDK
Resolved Date:
2011-04-05
Component:
client-libs
OS:
windows_xp
Sub-Component:
2d
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :


A DESCRIPTION OF THE PROBLEM :
When i am using  the below statement

Font  f = new Font(Map attributes);

Than with JDK1.4/1.5 it is working fine but if i use this statement with JDK1.6 than it is throwing below exception:

java.lang.ClassCastException: java.lang.String cannot be cast to java.text.AttributedCharacterIterator$Attribute
	at sun.font.AttributeValues.merge(AttributeValues.java:305)
	at sun.font.AttributeValues.fromMap(AttributeValues.java:341)
	at java.awt.Font.<init>(Font.java:645)



REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 6
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

                                    

Comments
EVALUATION

will ignore strings in the map
                                     
2007-09-13



Hardware and Software, Engineered to Work Together