System.out.printf

2008-05-12 Thread OneGuy
I tried System.out.printf("Primes up to %8d %8d\n", m, count); and it worked fine on GCJ (as far as I remember), but someone else got the error 45: error: Can't find method 'printf(Ljava/lang/String;II)' in type 'java.io.PrintStream'. System.out.printf("Primes up to %8d %8d\n", m, count);

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread Nicolas Geoffray
Hehe, didn't know I would made so much noise :) Indeed, I do have a copyright assignment. It's just that I can't find my username/passwd for commits. So I guessed it'd be easier to ask you guys. As for the patch, I followed the 1.6 rule, which throws an exception. If it's not the case anymore

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread Andrew John Hughes
On 12/05/2008, Andrew Haley <[EMAIL PROTECTED]> wrote: > Andrew John Hughes wrote: > > > > > Interestingly, our parseInt Mauve test has this: > > > > // In JDK1.7, '+' is considered a valid character. > > try > > { > > i = Integer.parseInt("+10"); > > harness.c

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread Andrew Haley
Andrew John Hughes wrote: > > Interestingly, our parseInt Mauve test has this: > > // In JDK1.7, '+' is considered a valid character. > try > { > i = Integer.parseInt("+10"); > harness.check(true); > } > catch (NumberFormatException nfe) > { >

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread Mark Wielaard
Hi, On Mon, 2008-05-12 at 13:52 -0700, David Daney wrote: > > Do you have a copyright assignment? If so, I'll test and commit on your > > behalf. > > I am not an expert in this realm, but this may be small enough so that > an assignment is not necessary. > > Perhaps someone like MJW could comm

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread Andrew John Hughes
On 12/05/2008, Andrew John Hughes <[EMAIL PROTECTED]> wrote: > On 12/05/2008, Tom Tromey <[EMAIL PROTECTED]> wrote: > > > "David" == David Daney <[EMAIL PROTECTED]> writes: > > > > David> I am not an expert in this realm, but this may be small enough > > David> so that an assignment is no

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread Andrew John Hughes
On 12/05/2008, Tom Tromey <[EMAIL PROTECTED]> wrote: > > "David" == David Daney <[EMAIL PROTECTED]> writes: > > David> I am not an expert in this realm, but this may be small enough > David> so that an assignment is not necessary. > > Yes, I agree, particularly because there is really only o

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread Tom Tromey
> "David" == David Daney <[EMAIL PROTECTED]> writes: David> I am not an expert in this realm, but this may be small enough David> so that an assignment is not necessary. Yes, I agree, particularly because there is really only one fix for this -- delete the '+' code. Actually, the proposed pa

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread David Daney
Andrew John Hughes wrote: On 12/05/2008, Nicolas Geoffray <[EMAIL PROTECTED]> wrote: With the following testcase (Test.java attached), the output of jamvm is: -42 It should have thrown an exception. I attached a patch to correct Integer.java. I could commit it, but I can't find my username/

[Bug classpath/36000] java.util.regex.Matcher should support region-based matching

2008-05-12 Thread gnu_andrew at member dot fsf dot org
--- Comment #1 from gnu_andrew at member dot fsf dot org 2008-05-12 20:47 --- The majority of functionality has been implemented. There remain some issues with the bound settings; the GNU regex library we use does not implement these options in the same way. CVSROOT:/sources/c

Re: Integer.parseInt("+42") gives -42

2008-05-12 Thread Andrew John Hughes
On 12/05/2008, Nicolas Geoffray <[EMAIL PROTECTED]> wrote: > With the following testcase (Test.java attached), the output of jamvm is: > -42 > > It should have thrown an exception. > > I attached a patch to correct Integer.java. I could commit it, but I can't > find my username/password. Can som

Integer.parseInt("+42") gives -42

2008-05-12 Thread Nicolas Geoffray
With the following testcase (Test.java attached), the output of jamvm is: -42 It should have thrown an exception. I attached a patch to correct Integer.java. I could commit it, but I can't find my username/password. Can someone commit it? (I already wrote to classpath-patches, but I may have