-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 1.4.0
-
Component/s: client-libs
-
sparc
-
solaris_2.5
Name: apR10100 Date: 03/12/2002
ColorSpace spec should define number and names of comps for built-in spaces:
CS_sRGB, CS_GRAY etc.
Current implementation returns 'Unnamed color component(i)' for
ColorSpace.getInstance(ColorSpace.CS_sRGB).getName(i) for any "i"
import java.awt.color.*;
public class Test {
public static void main(String argv[]) throws InterruptedException {
for(int i=-1; i<4; i++)
System.out.println(ColorSpace.getInstance(ColorSpace.CS_sRGB).getName(i));
}
}
Z:\tmp>java Test
Unnamed color component(-1)
Unnamed color component(0)
Unnamed color component(1)
Unnamed color component(2)
Unnamed color component(3)
======================================================================
- duplicates
-
JDK-4967082 ColorSpace.getName(int) should return significant values for some CSs
-
- Resolved
-