You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Pavlenko (JIRA)" <ji...@apache.org> on 2007/07/23 11:30:31 UTC
[jira] Updated: (HARMONY-4509) [classlib][awt] ICC color
transformation does not work
[ https://issues.apache.org/jira/browse/HARMONY-4509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Pavlenko updated HARMONY-4509:
-------------------------------------
Description:
The following test case fails with java.awt.color.CMMException: Can't create ICC transform:
public void test() {
new ICC_Transform(new ICC_Profile[] {
ICC_Profile.getInstance(ColorSpace.CS_sRGB),
ICC_Profile.getInstance(ColorSpace.CS_GRAY) });
}
Stack: java.awt.color.CMMException: Can't create ICC transform
at org.apache.harmony.awt.gl.color.NativeCMM.cmmCreateMultiprofileTransform(NativeCMM.java)
at org.apache.harmony.awt.gl.color.ICC_Transform.<init>(ICC_Transform.java:131)
Note: to reproduce this issue the system property "java.iccprofile.path" should point to a directory with sRGB and GRAY profiles. See HARMONY-4381.
was:
To reproduce this issue I use the Color demo distributed with JRockit JDK.
Steps to reproduce:
1. run $HARMONY_HOME/bin/java -Djava.iccprofile.path=$JROCKIT_HOME/jre/lib/cmm -jar $JROCKIT_HOME/demo/jfc/Java2D/Java2Demo.jar
2. Select the "Color" tab
Stack:
java.awt.color.CMMException: Can't create ICC transform
at org.apache.harmony.awt.gl.color.NativeCMM.cmmCreateMultiprofileTransform(Native Method)
at org.apache.harmony.awt.gl.color.ICC_Transform.<init>(ICC_Transform.java:131)
at java.awt.image.ColorConvertOp$ICC_TransfomCreator.getTransform(ColorConvertOp.java:15)
at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:465)
at java2d.demos.Colors.ColorConvert.render(ColorConvert.java:113)
at java2d.Surface.paint(Surface.java:359)
at javax.swing.JComponent.paintChildren(JComponent.java:973)
at javax.swing.JComponent.paint(JComponent.java:996)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:1425)
at javax.swing.JComponent.paint(JComponent.java:992)
at java.awt.Container.paintComponentsImpl(Container.java:17)
at java.awt.Container.paint(Container.java:936)
at java.awt.Component.processPaintEvent(Component.java:3692)
at java.awt.Component.dispatchEvent(Component.java:3519)
at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:149)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
> [classlib][awt] ICC color transformation does not work
> ------------------------------------------------------
>
> Key: HARMONY-4509
> URL: https://issues.apache.org/jira/browse/HARMONY-4509
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Andrey Pavlenko
>
> The following test case fails with java.awt.color.CMMException: Can't create ICC transform:
> public void test() {
> new ICC_Transform(new ICC_Profile[] {
> ICC_Profile.getInstance(ColorSpace.CS_sRGB),
> ICC_Profile.getInstance(ColorSpace.CS_GRAY) });
> }
> Stack: java.awt.color.CMMException: Can't create ICC transform
> at org.apache.harmony.awt.gl.color.NativeCMM.cmmCreateMultiprofileTransform(NativeCMM.java)
> at org.apache.harmony.awt.gl.color.ICC_Transform.<init>(ICC_Transform.java:131)
> Note: to reproduce this issue the system property "java.iccprofile.path" should point to a directory with sRGB and GRAY profiles. See HARMONY-4381.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.