Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 68224 invoked from network); 3 Dec 2007 11:01:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2007 11:01:08 -0000 Received: (qmail 40069 invoked by uid 500); 3 Dec 2007 11:00:56 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 40043 invoked by uid 500); 3 Dec 2007 11:00:56 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 40031 invoked by uid 99); 3 Dec 2007 11:00:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 03:00:56 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 11:01:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8EE94714201 for ; Mon, 3 Dec 2007 03:00:43 -0800 (PST) Message-ID: <3024718.1196679643575.JavaMail.jira@brutus> Date: Mon, 3 Dec 2007 03:00:43 -0800 (PST) From: "Igor V. Stolyarov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5240) [classlib][awt] Graphics.drawOval incorrectly works with AlphaComposite different from AlphaComposite.SrcOver In-Reply-To: <14628243.1196679523016.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Igor V. Stolyarov updated HARMONY-5240: --------------------------------------- Attachment: RI.JPG Harmony.JPG > [classlib][awt] Graphics.drawOval incorrectly works with AlphaComposite different from AlphaComposite.SrcOver > ------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-5240 > URL: https://issues.apache.org/jira/browse/HARMONY-5240 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Win > Reporter: Igor V. Stolyarov > Attachments: Harmony.JPG, RI.JPG > > > Graphics.drawOval incorrectly works with AlphaComposite different from AlphaComposite.SrcOver > Simple reproducer: > import java.io.*; > import java.awt.*; > import java.awt.image.*; > import javax.swing.*; > public class DrawOvalTest extends JFrame { > public static void main(String[] args){ > final DrawOvalTest test = new DrawOvalTest(); > test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > test.setSize(200, 200); > test.add(new Panel(){ > public void paint(Graphics g){ > Composite composite = AlphaComposite.Clear; > int w = test.getWidth(); > int h = test.getHeight(); > g.setColor(Color.green); > g.fillRect(0, 0, w, h); > Graphics2D g2d = (Graphics2D)g; > g2d.setColor(Color.red); > g2d.setComposite(composite); > g2d.drawOval(w/4, h/4, w/2, h/2); > } > }); > test.setVisible(true); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.