This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix for 'paste'


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]