Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 76232 invoked from network); 19 Jun 2007 08:14:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 08:14:47 -0000 Received: (qmail 98625 invoked by uid 500); 19 Jun 2007 08:14:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 98535 invoked by uid 500); 19 Jun 2007 08:14:51 -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 98522 invoked by uid 99); 19 Jun 2007 08:14:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 01:14:51 -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; Tue, 19 Jun 2007 01:14:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 20F0A7141E2 for ; Tue, 19 Jun 2007 01:14:26 -0700 (PDT) Message-ID: <19942526.1182240866132.JavaMail.jira@brutus> Date: Tue, 19 Jun 2007 01:14:26 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-4217) [classlib][awt] ExceptionInInitializerError is thrown if call certain method like getFontName() on a Font object In-Reply-To: <27981215.1182170606052.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-4217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko reassigned HARMONY-4217: ---------------------------------------- Assignee: Alexey Petrenko > [classlib][awt] ExceptionInInitializerError is thrown if call certain method like getFontName() on a Font object > ---------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-4217 > URL: https://issues.apache.org/jira/browse/HARMONY-4217 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Elena Sayapina > Assignee: Alexey Petrenko > > java.awt.Font(name, style, size) looks erroneous. > ExceptionInInitializerError is thrown if call some method like getFontName() on just created Font object. > Please, use the following test to reproduce the failure: > import java.awt.Font; > public class CFontTest { > public static void main(String[] args) { > try { > Font f = new Font ("Arial", 0, 10); > System.out.println("TEST PASSED: " + f.getFontName()); > } catch (Throwable e) { > e.printStackTrace(); > System.out.println("TEST FAILED"); > } > } > } > Output on Harmony-r548255: > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, > as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r548255, (Jun 18 2007), Windows/ia32/msvc 1310, release build > http://harmony.apache.org > java.lang.ExceptionInInitializerError > at java.awt.Font.getPeer(Font.java:865) > at java.awt.Font.getFontName(Font.java:614) > at CFontTest.main(CFontTest.java:8) > Caused by: java.lang.NullPointerException > at org.apache.harmony.awt.gl.font.FontManager.(FontManager.java:245) > at java.awt.Font.getPeer(Font.java:865) > ... 2 more > TEST FAILED > Output on RI: > java version "1.5.0_11" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) > Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode) > TEST PASSED: Arial > Note that you may change f.getFontName() to f.canDisplay('a') or f.getFamily() result will be the same. > Test org.apache.harmony.test.func.reg.jit.btest6569.Btest6569 from functional test suite > (https://issues.apache.org/jira/browse/HARMONY-3528) fails because of this bug. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.