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 to BufferedImage


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


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