Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 4158 invoked from network); 16 Aug 2007 13:49:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 13:49:59 -0000 Received: (qmail 27129 invoked by uid 500); 16 Aug 2007 13:49:49 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 27113 invoked by uid 500); 16 Aug 2007 13:49:49 -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 27103 invoked by uid 99); 16 Aug 2007 13:49:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 06:49:49 -0700 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; Thu, 16 Aug 2007 13:49:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C7DE47141EE for ; Thu, 16 Aug 2007 06:49:30 -0700 (PDT) Message-ID: <10958182.1187272170814.JavaMail.jira@brutus> Date: Thu, 16 Aug 2007 06:49:30 -0700 (PDT) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-4633) [classlib][awt] Infinite FlatteningPathIterator In-Reply-To: <24797611.1187156250541.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-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520249 ] Andrey Pavlenko commented on HARMONY-4633: ------------------------------------------ Verified, thanks. > [classlib][awt] Infinite FlatteningPathIterator > ----------------------------------------------- > > Key: HARMONY-4633 > URL: https://issues.apache.org/jira/browse/HARMONY-4633 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: SuSE Linux 10.0 32-bit > Reporter: Andrey Pavlenko > Assignee: Alexey Petrenko > Attachments: HARMONY-4633-FlatteningPathIterator.patch > > > The following test intermittently hangs on Linux. This is caused by FlatteningPathIterator which becomes infinite after window resising and after that the loop in the method org.apache.harmony.awt.gl.render.JavaShapeRasterizer.makeBuffer(PathIterator, double) never ends. > import java.awt.BasicStroke; > import java.awt.Canvas; > import java.awt.Frame; > import java.awt.Graphics; > import java.awt.Graphics2D; > public class Test { > public static void main(String[] args) { > final Frame f = new Frame(); > f.add(new Canvas() { > @Override > public void paint(Graphics g) { > final Graphics2D g2 = (Graphics2D) g; > final int w = getSize().width; > final int h = getSize().height; > final BasicStroke s = new BasicStroke(3, BasicStroke.CAP_ROUND, > BasicStroke.JOIN_ROUND, 0, new float[] { 0, 6, 0, 6 }, > 0); > System.out.println(1); > g2.setStroke(s); > System.out.println(2); > g2.drawRect(3, 3, w - 6, h - 6); > System.out.println(3); > } > }); > f.setSize(100, 100); > f.setVisible(true); > f.pack(); > f.setSize(110, 110); > f.setSize(120, 120); > f.setSize(130, 130); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.