This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [patch] fix to BufferedImage
- From: Tom Tromey <tromey at redhat dot com>
- To: graydon hoare <graydon at redhat dot com>
- Cc: classpath at gnu dot org, java-patches at gcc dot gnu dot org
- Date: 17 Sep 2003 10:20:22 -0600
- Subject: Re: [patch] fix to BufferedImage
- References: <8765jswg1b.fsf@dub.venge.net> <873cevv1y6.fsf@fleche.redhat.com><873cevtmb4.fsf@dub.venge.net>
- Reply-to: tromey at redhat dot com
>>>>> "graydon" == graydon hoare <graydon@redhat.com> writes:
graydon> the assignment however cannot coincide with the declaration, because
graydon> this is one of those "efficiency oriented" java APIs (pass in null if
graydon> you want the callee to allocate the array), and writing a literal
graydon> "null" in position of the "samples" argument degrades the type of the
graydon> argument to Object, which ambiguates the call: there's an overload for
graydon> each of int[], double[] and float[].
Sorry, I didn't read carefully enough. In that case you'll need
either `(int[]) null' or you'll have to keep the initialization (only
fields are initialized...). Our style, as far as I know, says nothing
about this situation, so it's up to you.
Tom