No, it doesn't work.
If you try compile this you will get an error. This happens because the null
parameter could be a java.awt.Frame or a java.awt.Dialog and the compiler
and the compiler can't find which one you tried to code.

Regards,

Leonardo R Nunes
Sumersoft Tecnologia Ltda.
----- Original Message -----
From: "Christopher Cobb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 1:23 PM
Subject: [Eap-bugs] Re: minor bug in the code inspector ...


> Actually, I'm pretty sure that this will work:
>
>     new JDialog(null, "Title", true);
>
>
> "Leonardo R. Nunes" wrote:
>
> > Consider the following statement:
> >
> > new JDialog((Frame)(null), "Title", true);
> >
> > The code inspector says that de type cast is redundant, but the type
cast is
> > necessary.
> >
> > Leonardo R Nunes
> > Sumersoft Tecnologia Ltda.
>
> _______________________________________________
> Eap-bugs mailing list
> [EMAIL PROTECTED]
> http://lists.jetbrains.com/mailman/listinfo/eap-bugs

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

Reply via email to