classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug? java.nio.Buffer


From: Michael Koch
Subject: Re: Possible bug? java.nio.Buffer
Date: Mon, 19 May 2003 10:41:15 +0200
User-agent: KMail/1.5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 19. Mai 2003 04:58 schrieb Ito Kazumitsu:
> java/nio/Buffer.java has the following code:
>
>   Buffer (int capacity, int limit, int position, int mark)
>   {
>     if (capacity < 0)
>       throw new IllegalArgumentException ();
>
>     cap = capacity;
>     limit (limit);
>     position (position);
>
>     if (mark > 0)      ----(*)
>     {
>       if (mark > pos)
>         throw new IllegalArgumentException ();
>
>       this.mark = mark;
>     }
>   }
>
> Should'nt the line marked with (*) be "if (mark >= 0)" ?

Fix commited to CVS HEAD.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+yJirWSOgCCdjSDsRAvGfAJ4nROEHBCNUgNP6/CZTEEV/7Dk8ngCfXdSK
HnCmSsY8t/r0jeaCIOdxci4=
=soXj
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]