public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mario Torre <neugens@limasoftware.net>
To: Tania Bento <tbento@redhat.com>
Cc: mauve-patches <mauve-patches@sources.redhat.com>
Subject: Re: FYI:  Test Fix
Date: Fri, 29 Jun 2007 22:42:00 -0000	[thread overview]
Message-ID: <1183156031.4044.19.camel@nirvana.limasoftware.net> (raw)
In-Reply-To: <1183145922.18659.11.camel@toothpaste.toronto.redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2047 bytes --]

Il giorno ven, 29/06/2007 alle 15.38 -0400, Tania Bento ha scritto:
> This patch fixes an incorrect test in
> gnu.testlet.java.lang.Integer.parseInt.
> 
> 
> 2007-06-29  Tania Bento  <tbento@redhat.com>
> 
>         * gnu/testlet/java/lang/Integer/parsetInt.java:
>         (test):  Fixed incorrect test.

Hi Tania!

You are breaking Classpath!! :P

With Classpath CVS and JDK 1.6:

prior to the patch:

PASS: gnu.testlet.java.lang.Integer.parseInt (number 12)
PASS: gnu.testlet.java.lang.Integer.parseInt (number 13)
PASS: gnu.testlet.java.lang.Integer.parseInt (number 14)

after the patch:

FAIL: gnu.testlet.java.lang.Integer.parseInt: Leading '+' does not throw
NumberFormatException (number 0)
PASS: gnu.testlet.java.lang.Integer.parseInt: Leading '+' does not throw
NumberFormatException (number 1)
PASS: gnu.testlet.java.lang.Integer.parseInt: Leading '+' does not throw
NumberFormatException (number 2)

So the test is wrong somewhere. I know that the javadoc for java 7
states that '+' is a valid character, but I think this is too much a
work in progress to include it as a test, removing old tests, especially
if this ends up that current stable version fails, while development
snapshots (whose specs may change at any time) works. I would wait to
see that finalized, or just write a test specifically for IcedTea.

If you think there is a reason to break current behaviour ahead of time,
please, go further and don't listen to me, but in this case I guess that
a patch for classpath to fix it is needed too.

Of course, this is only my opinion.

Ciao!
Mario
-- 
Lima Software - http://www.limasoftware.net/
GNU Classpath Developer - http://www.classpath.org/
Fedora Ambassador - http://fedoraproject.org/wiki/MarioTorre
Jabber: neugens@jabber.org
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

Please, support open standards:
http://opendocumentfellowship.org/petition/
http://www.nosoftwarepatents.com/

[-- Attachment #2: Questa è una parte del messaggio firmata digitalmente --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-06-29 22:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-29 19:38 Tania Bento
2007-06-29 22:42 ` Mario Torre [this message]
2007-07-03 13:11   ` Tania Bento
2007-07-10 14:03 Joshua Sumali
2007-07-13 16:04 Joshua Sumali
2007-07-13 20:22 Joshua Sumali
2007-07-18 18:49 Joshua Sumali
2007-07-24 13:28 Joshua Sumali
2007-07-24 20:17 ` David Daney
2007-07-24 19:37 Joshua Sumali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1183156031.4044.19.camel@nirvana.limasoftware.net \
    --to=neugens@limasoftware.net \
    --cc=mauve-patches@sources.redhat.com \
    --cc=tbento@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).