This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Fix for 'paste'
- From: Tom Tromey <tromey at redhat dot com>
- To: Fernando Nasser <fnasser at redhat dot com>
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: 08 Dec 2003 15:09:30 -0700
- Subject: Re: [PATCH] Fix for 'paste'
- References: <3FD4F434.4030100@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Fernando" == Fernando Nasser <fnasser@redhat.com> writes:
Fernando> This patch fixes it by returning the object accordingly to the
Fernando> DataFlavor specified by the caller.
According to the JDK docs, getTransferData returns a String for
stringFlavor, and a Reader for other flavors -- which it notes is
inconsistent with the definition of plainTextFlavor (which is
deprecated anyhow).
So shouldn't this make a StringReader instead of a
StringBufferInputStream?
Tom