Bug 4838 - Can create FontData with null name string (1GKA93P)
Summary: Can create FontData with null name string (1GKA93P)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 14:23 EDT by Carolyn MacLeod CLA
Modified: 2002-05-16 01:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carolyn MacLeod CLA 2001-10-11 14:23:55 EDT
The spec for the FontData(name, height, style) constructor says the name string "must not be null".
	But it doesn't throw IllegalArgumentException.
	The spec should spec it, and the implementation should throw it.

	The reason is that the same constructor for Font throws IllegalArgumentException if name is null.

	Should see what happens on X if you try to create a FontData with null name.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 16:42:32 EST
PRODUCT VERSION:
	135

Comment 2 Carolyn MacLeod CLA 2002-05-16 01:18:02 EDT
Was fixed a while ago.