This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes instanceof  doesn´t works as expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "instanceof  doesn´t works as expected" Watch "instanceof  doesn´t works as expected" New topic

instanceof doesn´t works as expected

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331

when I try to do this

opprowPerson instanceof OppositionPerson

it doesnt works in BIRT but if I try to show the content


it shows pakcageName.OppositionPerson@a0d967

Any idea, please?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10172

ItDoesntWorkIsUseless TellTheDetails

That suspiciously looks like a toString() invoked on an OppositionPerson instance.

You need to provide us some background, show us some code and tell us what problem you are facing so we can help point you in the right direction

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: instanceof doesn´t works as expected
Similar Threads
Vector Collection
Shift Operator Gurus !!
instanceof operator???
how to cast superclass into subclass
TypeCast Error while setting a value in a setter method