This is the mail archive of the
mauve-patches@sources.redhat.com
mailing list for the Mauve project.
java.util.Date.toString testcase
- From: Roman Schnider <schnider at aicas dot com>
- To: mauve-patches at sources dot redhat dot com
- Date: Wed, 21 Jul 2004 14:21:05 +0200
- Subject: java.util.Date.toString testcase
- Organization: aicas GmbH
Hello,
the attached testcase throws an AIOOB exception run against GNU Classpath. Works
with Sun JDK.
Could someone with write access add it to the Mauve repository?
Thanks.
Roman.
// Tags: JDK1.0
// Copyright (C) 2004 Free Software Foundation, Inc.
// Contributed by Per Bothner <per@bothner.com>.
// This file is part of Mauve.
// Mauve is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option)
// any later version.
// Mauve is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Mauve; see the file COPYING. If not, write to
// the Free Software Foundation, 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
package gnu.testlet.java.util.Date;
import gnu.testlet.Testlet;
import gnu.testlet.TestHarness;
import java.util.Date;
public class toString implements Testlet
{
private TestHarness harness;
public void test(TestHarness harness)
{
this.harness = harness;
try {
Date date = new Date(0x4f4f4f4f4f4dal);
harness.check(date.toString()!="", date.toString());
} catch (Exception e) {
harness.fail("new Date (0x4f4f4f4f4f4dal).toString() throwed exception: ");
e.printStackTrace();
}
}
}