You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/07/27 14:17:18 UTC

[jira] Resolved: (HARMONY-4381) [classlib][awt] Color profiles are not exists

     [ https://issues.apache.org/jira/browse/HARMONY-4381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-4381.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> [classlib][awt] Color profiles are not exists
> ---------------------------------------------
>
>                 Key: HARMONY-4381
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4381
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Dmitriy Matveev
>            Assignee: Alexey Petrenko
>         Attachments: HARMONY-4381-build.patch, HARMONY-4381-profiles.zip
>
>
> Exception when using getInstance() method of java.awt.color.ICC_Profile
> Test below demonstrate this:
> import java.awt.*;
> import java.awt.color.ColorSpace;
> import java.awt.event.WindowAdapter;
> import java.awt.event.WindowEvent;
> import java.awt.image.ColorConvertOp;
> public class ColorTest {
>     public static void main(String[] args) {
>         Frame f = new Frame("Test"){
>             public void paint(Graphics g){
>                 Graphics2D g2d = (Graphics2D)g;
>                 RenderingHints hints = g2d.getRenderingHints();
>                 ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
>                 ColorConvertOp cco = new ColorConvertOp(cs, hints);
>             }
>         };
>             
>         f.setBounds(0, 0, 800, 600);
>         f.setVisible(true);
>         f.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent ev) {               
>                 System.exit(0);
>             }
>         });        
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.