Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 57727 invoked from network); 6 Oct 2006 10:24:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2006 10:24:37 -0000 Received: (qmail 94783 invoked by uid 500); 6 Oct 2006 10:24:37 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 94749 invoked by uid 500); 6 Oct 2006 10:24:37 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 94737 invoked by uid 99); 6 Oct 2006 10:24:37 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Oct 2006 03:24:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:41298] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id C3/54-18133-2EE26254 for ; Fri, 06 Oct 2006 03:24:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AFB537141B8 for ; Fri, 6 Oct 2006 03:24:20 -0700 (PDT) Message-ID: <22524294.1160130260717.JavaMail.root@brutus> Date: Fri, 6 Oct 2006 03:24:20 -0700 (PDT) From: "Svetlana Samoilenko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1742) [classlib][swing] javax.swing.text.MaskFormatter.valueToString(Object) throws unspecified NPE In-Reply-To: <16417972.1160130080658.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1742?page=all ] Svetlana Samoilenko updated HARMONY-1742: ----------------------------------------- Attachment: MaskFormatterTest.patch test > [classlib][swing] javax.swing.text.MaskFormatter.valueToString(Object) throws unspecified NPE > --------------------------------------------------------------------------------------------- > > Key: HARMONY-1742 > URL: http://issues.apache.org/jira/browse/HARMONY-1742 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Svetlana Samoilenko > Priority: Minor > Attachments: MaskFormatterTest.patch > > > Description: > javax.swing.text.MaskFormatter.valueToString(Object) throws unspecified NPE. > The same issue is for MaskFormatter.install(JFormattedTextField) method. > Test for reproducing: > import junit.framework.TestCase; > import javax.swing.*; > import javax.swing.text.*; > import java.text.*; > public class test extends TestCase { > public void testValueToString_Object() throws ParseException{ > MaskFormatter obj = new MaskFormatter(); > obj.valueToString(new Object()); > } > public void testInstall_JFormattedTextField() { > MaskFormatter obj = new MaskFormatter(); > obj.install(new JFormattedTextField()); > } > } > HARMONY output: > ============== > 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 = r450941, (Sep 28 2006), Windows/ia32/msvc 1310, release build > http://incubator.apache.org/harmony > .E.E > Time: 1.109 > There were 2 errors: > 1) testValueToString_Object(test)java.lang.NullPointerException > at javax.swing.text.MaskFormatter.fillAll(MaskFormatter.java:202) > at javax.swing.text.MaskFormatter.valueToString(MaskFormatter.java:193) > at test.testValueToString_Object(test.java:10) > at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) > 2) testInstall_JFormattedTextField(test)java.lang.NullPointerException > at javax.swing.text.MaskFormatter.fillAll(MaskFormatter.java:202) > at javax.swing.text.MaskFormatter.valueToString(MaskFormatter.java:193) > at javax.swing.JFormattedTextField$AbstractFormatter.updateText(JFormattedTextField.java:99) > at javax.swing.JFormattedTextField$AbstractFormatter.install(JFormattedTextField.java:92) > at javax.swing.text.MaskFormatter.install(MaskFormatter.java:119) > at test.testInstall_JFormattedTextField(test.java:14) > at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) > FAILURES!!! > Tests run: 2, Failures: 0, Errors: 2 > SUN output: > ========= > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) > .. > Time: 0.01 > OK (2 test) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira