This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Behaviour of CharArrayWriter
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: Lars Andersen <lars at rimfaxe dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 22 Jul 2002 09:50:29 +0100 (BST)
- Subject: Behaviour of CharArrayWriter
- References: <1027192667.24604.10.camel@lars.rimfaxe.com>
Lars Andersen writes:
>
>
> GCJ behaves in many ways like jdk1.4, even though it is only partially
> done.
>
> An example is the "assert" keyword enforced in GCJ.
>
> java.io.CharArrayWriter.write(int)
> throws an java.io.IOException in jdk1.3 , in jdk1.4 it doesn't according
> to Sun java API pages.
>
> In GCJ it throws an IOException, like the jdk1.3.
Okay. If we agree that this is wrong we will fix it.
> This can be very confusing, when GCJ sometimes behaves radically
> different from standard jdk's.
I don't understand what point you're making here. It seems like,
according to your description, gcj must inevitably behave in a
different way to one of these JDKs.
Any reasonable written Java prgram must surely not depend on minor
differences between jdk1.3 and jdk1.4.
Andrew.