classpath
[Top][All Lists]
Advanced

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

Re: [patch] fix to BufferedImage


From: Stephen Crawley
Subject: Re: [patch] fix to BufferedImage
Date: Thu, 18 Sep 2003 09:35:12 +1000

address@hidden said:
> the assignment however cannot coincide with the declaration, because
> this is one of those "efficiency oriented" java APIs (pass in null if
> you want the callee to allocate the array), and writing a literal
> "null" in position of the "samples" argument degrades the type of the
> argument to Object, which ambiguates 

Here's how you write the call to ensure that you get the correct 
overloaded method:

  samples = src.getPixels (x, y, w, h, (int[]) null);

-- Steve





reply via email to

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