Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 75022 invoked from network); 29 Jan 2008 12:06:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2008 12:06:57 -0000 Received: (qmail 86198 invoked by uid 500); 29 Jan 2008 12:06:48 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 86176 invoked by uid 500); 29 Jan 2008 12:06:48 -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 86167 invoked by uid 99); 29 Jan 2008 12:06:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2008 04:06:48 -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; Tue, 29 Jan 2008 12:06:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4B71571420A for ; Tue, 29 Jan 2008 04:06:34 -0800 (PST) Message-ID: <24542794.1201608394306.JavaMail.jira@brutus> Date: Tue, 29 Jan 2008 04:06:34 -0800 (PST) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-5428) [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases. In-Reply-To: <9479185.1201268134395.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-5428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko resolved HARMONY-5428. -------------------------------------- Resolution: Fixed The patch has been applied. Please, verify. > [classlib][awt][appletviewer] Component.createGraphics() returns Graphics with null font in any cases. > ------------------------------------------------------------------------------------------------------ > > Key: HARMONY-5428 > URL: https://issues.apache.org/jira/browse/HARMONY-5428 > Project: Harmony > Issue Type: Bug > Components: Classlib, JDK > Reporter: Dmitriy Matveev > Assignee: Alexey Petrenko > Attachments: AppletViewerFonts.patch > > > Component.createGraphics() returns Graphics with null font, when font of the current component is null. > Reproducer: > import java.awt.Button; > import java.awt.Font; > import java.awt.Frame; > import java.awt.Graphics; > import java.awt.event.WindowAdapter; > import java.awt.event.WindowEvent; > public class AppletViewerTest { > public static void main(String[] args) { > Frame f = new Frame(); > f.setFont(new Font("Arial",Font.PLAIN,30)); > f.addWindowListener(new WindowAdapter() { > public void windowClosing(WindowEvent ev) { > System.exit(0); > } > }); > > Button b= new Button("Ok"); > f.add(b); > f.setVisible(true); > Graphics g = b.getGraphics(); > System.out.print(g.getFont()); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.