instanceof Operator

Ramesh Mandaleeka ramesh.mandaleeka at gmail.com
Fri Apr 9 10:22:14 PDT 2010


Thanks you all for the input. I submitted an enhancement request with a view
that it would be natural to work with methods when interacting with objects
instead of an operator. The Review ID: 1750219

Regards,
Ramesh

On Fri, Apr 9, 2010 at 1:16 PM, Ramesh Mandaleeka <
ramesh.mandaleeka at gmail.com> wrote:

> My apology for posting here. I submitted an enhancement request with a view
> that it would be natural to work with methods when interacting with objects.
>
>
> -Ramesh
>
>
> On Fri, Apr 9, 2010 at 12:57 PM, Jonathan Gibbons <
> jonathan.gibbons at oracle.com> wrote:
>
>>  If you really want to follow up on this, the correct way would be to file
>> an issue on bugs.sun.com.
>>
>> However, given the easy workaround using isAssignableFrom, I'm not sure
>> the issue would gain much traction.
>>
>> -- Jon
>>
>>
>>
>> Ramesh Mandaleeka wrote:
>>
>> Thank you Jonathan. But the method you are referring is in java.lang.Class
>> class not java.lang.Object. Isn't it nice to have final public boolean
>> isInstanceOf(Object obj) as a method in java.lang.Object class?
>>
>> Note: Hope this is right forum to ask. If not please let me know I will
>> cross post on the appropriate forum.
>>
>> Thanks,
>> Ramesh
>>
>> On Fri, Apr 9, 2010 at 11:54 AM, Jonathan Gibbons <jonathan.gibbons at oracle.com> wrote:
>>
>>
>>
>>  Ramesh Mandaleeka wrote:
>>
>>
>>
>>  Hi,
>>
>> Why there is not instanceOf() method in java.lang.Object just like
>> equals()
>> method. Why we need an operator? A class can tell if it equals to other
>> object or not but why not an instanceOf(Object obj) method ( I guess it
>> should be final too).
>>
>> Regards,
>> Ramesh
>>
>>
>>
>>
>>
>>  If this message was not off-topic for the list, I would reply that it's
>> there and called isAssignableFrom.
>>
>> -- Jon
>>
>>
>>
>>
>>
>



More information about the coin-dev mailing list