instanceof problem

Running the inspector it seems to improperly complain every time I use
instanceof.

The inspector thinks code like this:

void someMethod ( Object o )
{
if ( o instanceof SomeClass )

that the expression is always false.

Is anyone else seeing this.  Do I need to create as SSCCE?
See http://mindprod.com/jgloss/sscce.html
--
Roedy Green Canadian Mind Products
http://mindprod.com

If you tell a computer the same fact in more than one place, unless you have an automated mechanism to ensure           they stay in sync, the versions of the fact will eventually get out of sync.

1 comment

SSCCE will be much appreciated.
As well as NSSSCE (Not So Short Self Contained Example) and ULSSE (Utterly
Long Self Contained Example) , as long as they are all EIIYITed
(Entered Into the IDEA Youtrack Issue Tracker in
http://youtrack.jetbrains.net/issues/IDEA)
Thanks,

--
Alexey Kudravtsev
Intellij IDEA developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Roedy Green" <see_website@mindprod.com.invalid> wrote in message
news:1u35r598vs8vggug0da8kip3n6hil7ajt9@4ax.com...

Running the inspector it seems to improperly complain every time I use
instanceof.

>

The inspector thinks code like this:

>

void someMethod ( Object o )
{
if ( o instanceof SomeClass )

>

that the expression is always false.

>

Is anyone else seeing this.  Do I need to create as SSCCE?
See http://mindprod.com/jgloss/sscce.html
--
Roedy Green Canadian Mind Products
http://mindprod.com

>

If you tell a computer the same fact in more than one place, unless you
have an automated mechanism to ensure           they stay in sync, the
versions of the fact will eventually get out of sync.


0

Please sign in to leave a comment.