classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] fix to BufferedImage


From: Tom Tromey
Subject: Re: [patch] fix to BufferedImage
Date: 17 Sep 2003 10:20:22 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "graydon" == graydon hoare <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]