google-code-export / as3-commons

Automatically exported from code.google.com/p/as3-commons
3 stars 3 forks source link

ClassUtils.isInterface returning True for Object class #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call ClassUtils.isInterface(Object);

What is the expected output? What do you see instead?
Expect false, but get true instead

Please provide any additional information below.
There needs to be an extra check if the specified class is Object, than
return false as an exception (The describeType() XML for the Object class
doesn't have an <extendsClass/> element).

I've replace the isInterface code with the same code I ised in my previous
patch for the Type.isInterface property. I also added an extra unit test
for ClassUtils.isInterface().

Patches are attached.

Original issue reported on code.google.com by ihatelivelyids on 3 Sep 2009 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by christophe.herreman on 5 Oct 2009 at 4:01