Hi Dan,

This is a known bug first reported by Thomas Singer. The request was already
submitted.
The workaround is using the following syntax:

final String[] args = new String[]{ "value1", "value2" }

Best regards,
Eugene Zhuravlev
IntelliJ Software, http://www.intellij.com/
"Develop with pleasure!"


----- Original Message -----
From: "North D" <[EMAIL PROTECTED]>
To: "EAP List (E-mail)" <[EMAIL PROTECTED]>
Sent: 05 December, 2001 6:30 PM
Subject: [Eap-list] inline bug with arrays


> Hi there.
>
> Small bug with the following refactoring:
>
> final String[] args = { "value1", "value2" };
> doSomething( args );
>
>
> When I inline args, I get:
>
> doSomething( { "value1", "value2" } );
>
> which doesn't compile, instead of:
>
> doSomething( new String[]{ "value1", "value2" } );
>
> Cheers,
> Dan
>
>
>
****************************************************************************
***********
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify
[EMAIL PROTECTED] immediately.
>
> This footnote also confirms that this email message has been swept for the
> presence of computer viruses.
>
****************************************************************************
***********
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to