JDK-6538853 : Default FontEditor generates incorrect text representation
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2007-03-26
  • Updated: 2012-03-22
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b15Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
JCK: JCK-runtime-6a b08
J2SE: FAIL - JDK7 b10, PASS JDK 7 b09, JDK 6u1 b06
Platform[s]: FAIL -  Linux, Windows PASS Solaris-i586
switch/Mode: FAIL - default

Test api/java_beans/PropertyEditorManager/descriptions.html#PropertyEditor[PropertyEditorManager0010] fails on windows and linux platfroms since JDK 7 b10 with the exception


Couldn't instantiate type editor "javasoft.sqe.tests.api.java.beans.PropertyEditorManager.UninstEditor" : java.lang.InstantiationException
Couldn't instantiate type editor "javasoft.sqe.tests.api.java.beans.PropertyEditorManager.UncastEditor" : java.lang.ClassCastException: javasoft.sqe.tests.api.java.beans.PropertyEditorManager.UncastEditor cannot be cast to java.beans.PropertyEditor
Couldn't instantiate type editor "javasoft.sqe.tests.api.java.beans.PropertyEditorManager.UninstEditor" : java.lang.InstantiationException
Couldn't instantiate type editor "javasoft.sqe.tests.api.java.beans.PropertyEditorManager.UncastEditor" : java.lang.ClassCastException: javasoft.sqe.tests.api.java.beans.PropertyEditorManager.UncastEditor cannot be cast to java.beans.PropertyEditor
PropertyEditorManager0001: Passed. OKAY
PropertyEditorManager0002: Passed. OKAY
PropertyEditorManager0003: Passed. OKAY
PropertyEditorManager0004: Passed. OKAY
PropertyEditorManager0005: Passed. OKAY
PropertyEditorManager1001: Passed. OKAY
PropertyEditorManager1002: Passed. OKAY
PropertyEditorManager0006: Passed. OKAY
PropertyEditorManager0007: Passed. OKAY
PropertyEditorManager0008: Passed. OKAY
PropertyEditorManager0009: Passed. OKAY
javasoft.sqe.tests.api.java.beans.util.BadStatus: setAsText failed
	at javasoft.sqe.tests.api.java.beans.PropertyEditorManager.PropertyEditorTests.checkEditor(PropertyEditorTests.java:90)
	at javasoft.sqe.tests.api.java.beans.PropertyEditorManager.PropertyEditorTests.PropertyEditorManager0010(PropertyEditorTests.java:437)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:406)
	at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
	at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
	at javasoft.sqe.tests.api.java.beans.PropertyEditorManager.PropertyEditorTests.main(PropertyEditorTests.java:135)
PropertyEditorManager0010: Failed. Test case throws exception: javasoft.sqe.tests.api.java.beans.util.BadStatus: setAsText failed
PropertyEditorManager0011: Passed. OKAY
PropertyEditorManager0012: Passed. OKAY
PropertyEditorManager0013: Passed. OKAY
PropertyEditorManager0014: Passed. OKAY
PropertyEditorManager0015: Passed. OKAY
PropertyEditorManager0016: Passed. OKAY
PropertyEditorManager0017: Passed. OKAY
PropertyEditorManager0018: Passed. OKAY
PropertyEditorManager0019: Passed. OKAY
PropertyEditorManager0020: Passed. OKAY
PropertyEditorManager0021: Passed. OKAY
PropertyEditorManager0022: Passed. OKAY
PropertyEditorManager0023: Passed. OKAY
PropertyEditorManager0024: Passed. OKAY
PropertyEditorManager0025: Passed. OKAY
PropertyEditorManager0026: Passed. OKAY
PropertyEditorManager0027: Passed. OKAY
PropertyEditorManager0028: Passed. OKAY
PropertyEditorManager0029: Passed. OKAY
PropertyEditorManager0030: Passed. OKAY
PropertyEditorManager0031: Passed. OKAY
STATUS:Failed.test cases: 33; passed: 32; failed: 1; first test case failure: PropertyEditorManager0010
----------out2:(0/0)----------
result: Failed. test cases: 33; passed: 32; failed: 1; first test case failure: PropertyEditorManager0010


test result: Failed. test cases: 33; passed: 32; failed: 1; first test case failure: PropertyEditorManager0010

Comments
EVALUATION There is the problem with text representation of the Font. The name of the font should be used instead its family. We should fix the getAsText() and getJavaInitializationString() methods in the class sun.beans.editors.FontEditor. We should call the getName() method instead of getFamily() one.
28-03-2007