[patch] fix to BufferedImage
Tom Tromey
tromey@redhat.com
Wed Sep 17 23:35:00 GMT 2003
>>>>> "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
More information about the Java-patches
mailing list