Same with any array in fact (I filed this about byte[] a few weeks ago)

On 6/13/02 7:26 AM, in article ae9v9k$qoh$[EMAIL PROTECTED], "Johannes
Hubert" <[EMAIL PROTECTED]> wrote:

> Build 629
> W2000
> 
> I have a method with a signature as follows:
> 
> method(String p1, String p2, String p3, Serializable p4)
> 
> I call this method like this:
> 
> Long[] array = ... // something
> someObj.method("string1", "string2", "string3", array);
> 
> (Note: the array is java.lang.Long[] not long[] !)
> 
> This is of course legal, since Long[] implicitely implements "Serializable".
> I do not get any problems from the compiler either.
> 
> However, the editor underlines the "method"-call with the wavy red syntax
> error marking and gives the following message:
> "method(java.lang.String, java.lang.String, java.lang.String,
> java.io.Serializable) in MyClass can not be applied to (java.lang.String,
> java.lang.String, java.lang.String, java.lang.Long[])".
> 
> This is of course not correct.
> 
> Johannes
> 
> 

_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to